/* ================================================
   landing.css — BarangayConnect
   Custom stylesheet for the public landing page.

   WHAT IS IN HERE:
   · Bento bento-grid modules with custom sizing rules
   · Running marquee strip text keyframe animations
   · Public navigation menu layouts and footer blocks
   · Responsive cards and layouts for landing roles

   WHAT IS NOT IN HERE:
   · Authenticated resident workspace      → home.css, profile.css
   · Administrative layout panels          → admin.css
   · Dynamic feature card swaps            → landing-animations.js
================================================ */
/* ================================================
   landing.css — BarangayConnect
   ================================================ */

/* ── Hero background image ───────────────────────
   To change the hero photo, update 1g-url
   below. Accepts any valid CSS url() value.
   e.g.  url('/assets/images/hero.jpg')
   ─────────────────────────────────────────────── */
:root {
  --hero-bg-url: url('/assets/images/bg-index.jpg');
}

.landing-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* ================================================
   NAVBAR
   ================================================ */

.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 400;
  height: var(--navbar-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.30s ease, border-color 0.30s ease, box-shadow 0.30s ease;
}

.landing-nav.is-scrolled {
  background: var(--white);
  border-bottom-color: var(--navbar-border);
  box-shadow: var(--navbar-shadow);
}

.landing-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.landing-nav__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.landing-nav__logo-img {
  width: 34px; height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.30s ease;
}

.landing-nav.is-scrolled .landing-nav__logo-img {
  filter: brightness(0) saturate(100%) invert(21%) sepia(28%) saturate(800%) hue-rotate(100deg) brightness(85%);
}

.landing-nav__logo-text {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: var(--text-lg);
  color: var(--white);
  letter-spacing: -0.2px;
  transition: color 0.30s ease;
}

.landing-nav.is-scrolled .landing-nav__logo-text { color: var(--green-dark); }

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
  justify-content: center;
}

.landing-nav__link {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.landing-nav__link:hover { color: var(--white); background: var(--overlay-white-10); }
.landing-nav.is-scrolled .landing-nav__link { color: var(--gray-700); }
.landing-nav.is-scrolled .landing-nav__link:hover { color: var(--green-dark); background: var(--alpha-green-06); }

.landing-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.landing-nav.is-scrolled .btn--outline-hero {
  color: var(--black);
  border-color: rgba(44,40,40,0.22);
}

.landing-nav.is-scrolled .btn--outline-hero:hover {
  background: var(--alpha-ink-06);
  color: var(--black);
  box-shadow: none;
}

@media (max-width: 768px) { .landing-nav__links { display: none; } }
@media (max-width: 520px) {
  .landing-nav__inner { padding: 0 var(--space-md); }
  .landing-nav__logo-text { display: none; }
}


/* ================================================
   HERO — full-bleed background image, centered text
   ================================================ */

.hero {
  background: var(--green-dark);
  padding-top: calc(var(--navbar-h) + 5rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Full-bleed photo that spans the entire hero */
.hero__bg-img {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg-url);
  background-size: cover;
  background-position: center top;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.hero__dot-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(90px);
}

.hero__blob--left {
  width: 600px; height: 600px;
  left: -200px; top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(74,140,92,0.50) 0%, transparent 70%);
}

.hero__blob--right {
  width: 420px; height: 420px;
  right: -100px; bottom: -80px;
  background: radial-gradient(circle, rgba(27,75,39,0.75) 0%, transparent 70%);
}

/* Centered single-column inner */
.hero__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  gap: var(--space-lg);
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-base-sm);
  color: rgba(255,255,255,0.72);
}

.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.22);
  animation: hero-dot-pulse 2.2s ease-in-out infinite;
}

@keyframes hero-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.22); }
  50%       { box-shadow: 0 0 0 6px rgba(74,222,128,0.08); }
}

.hero__heading {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero__heading-accent { color: var(--orange); }

.hero__sub {
  max-width: 520px;
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.65);
  line-height: var(--lh-relaxed);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-sm);
}

@media (max-width: 520px) {
  .hero { min-height: auto; padding-bottom: var(--space-2xl); }
  .hero__heading { font-size: 2.8rem; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__inner { padding: 0 var(--space-md); }
}



/* ================================================
   CITIES STRIP
   ================================================ */

.cities-strip {
  padding: var(--space-lg) 0;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-100);
}

.cities-strip__label {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-400);
  margin-bottom: var(--space-sm);
}

.cities-strip__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: var(--space-lg) var(--space-2xl);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  overflow: hidden;
}

.city-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: var(--text-base-sm);
  font-weight: var(--fw-semibold);
  color: var(--gray-500);
  white-space: nowrap;
}

.city-item__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  opacity: 0.7;
}


/* ================================================
   WHAT WE OFFER — Bento
   ================================================ */

.what-we-offer {
  padding: 6rem 0;
  background: var(--off-white);
}

.what-we-offer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.what-we-offer__header { margin-bottom: var(--space-2xl); }

.what-we-offer__eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange-hover);
  margin-bottom: var(--space-sm);
}

.what-we-offer__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.what-we-offer__title-accent { color: var(--green-dark); }

.what-we-offer__sub {
  font-size: var(--text-base);
  color: var(--gray-500);
  line-height: var(--lh-relaxed);
  max-width: 520px;
}

/* Bento layout */
.bento-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-md);
  align-items: stretch;
}

.bento-card {
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow: hidden;
  position: relative;
}

.bento-card--main { min-height: 380px; }

.bento-card--dark  { background: var(--green-dark); color: var(--white); }
.bento-card--pink  { background: #fff0f2; }
.bento-card--cream { background: #fdf8f0; }
.bento-card--mint  { background: #f0faf5; }
.bento-card--amber { background: #fff8ed; }

/* Icon tiles */
.bento-card__icon-tile {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.bento-card__icon-tile [data-lucide],
.bento-card__icon-tile svg { width: 22px; height: 22px; color: var(--orange); stroke-width: 2; }

.bento-card__icon-sm {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.bento-card__icon-sm [data-lucide],
.bento-card__icon-sm svg { width: 20px; height: 20px; stroke-width: 2; }

.bento-card__icon-sm--red    { background: rgba(220,38,38,0.10); }
.bento-card__icon-sm--red    [data-lucide],
.bento-card__icon-sm--red    svg { color: var(--red); }

.bento-card__icon-sm--orange { background: rgba(255,161,53,0.12); }
.bento-card__icon-sm--orange [data-lucide],
.bento-card__icon-sm--orange svg { color: var(--orange-hover); }

.bento-card__icon-sm--green  { background: rgba(27,75,39,0.10); }
.bento-card__icon-sm--green  [data-lucide],
.bento-card__icon-sm--green  svg { color: var(--green-dark); }

.bento-card__icon-sm--amber  { background: rgba(245,158,11,0.12); }
.bento-card__icon-sm--amber  [data-lucide],
.bento-card__icon-sm--amber  svg { color: #854d0e; }

.bento-card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--text-xl);
  color: var(--white);
  line-height: var(--lh-tight);
}

.bento-card__title--dark { color: var(--text-dark); }

.bento-card__desc {
  font-size: var(--text-base-sm);
  color: rgba(255,255,255,0.65);
  line-height: var(--lh-relaxed);
}

.bento-card__desc--dark { color: var(--gray-500); }

/* Doc list inside main card */
.bento-doc-list {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-sm);
  border: 1px solid rgba(255,255,255,0.08);
}

.bento-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.80);
}

.bento-doc-item:last-child { border-bottom: none; }

.bento-doc-status {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.bento-doc-status--approved   { background: rgba(16,185,129,0.18);  color: #4ade80; }
.bento-doc-status--processing { background: rgba(255,161,53,0.18);   color: var(--orange); }
.bento-doc-status--ready      { background: rgba(16,185,129,0.18);  color: #4ade80; }
.bento-doc-status--alert      { background: rgba(220,38,38,0.22);   color: #f87171; }

/* Side 2×2 */
.bento-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.bento-side-card {
  cursor: pointer;
  text-align: left;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), border-color var(--transition);
}

.bento-side-card:hover:not(.is-selected) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27,75,39,0.15);
}

.bento-side-card.is-selected {
  background: var(--green-dark) !important;
  border-color: rgba(255,255,255,0.10);
  box-shadow: var(--shadow-md);
}

.bento-side-card.is-selected .bento-card__title--dark { color: var(--white); }
.bento-side-card.is-selected .bento-card__desc--dark  { color: rgba(255,255,255,0.62); }
.bento-side-card.is-selected .bento-card__icon-sm     { background: rgba(255,255,255,0.12) !important; }
.bento-side-card.is-selected .bento-card__icon-sm [data-lucide],
.bento-side-card.is-selected .bento-card__icon-sm svg { color: var(--orange) !important; }

@media (max-width: 900px) { .bento-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .bento-side { grid-template-columns: 1fr; }
  .what-we-offer__inner { padding: 0 var(--space-md); }
}


/* ================================================
   FILIPINO MARQUEE
   ================================================ */

.ph-marquee {
  background: var(--green-dark);
  overflow: hidden;
  padding: var(--space-xl) 0;
  white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ph-marquee__track {
  display: inline-flex;
  align-items: center;
  animation: ph-marquee-scroll 30s linear infinite;
  will-change: transform;
}

@keyframes ph-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ph-marquee__item {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  padding: 0 36px;
  white-space: nowrap;
}

.ph-marquee__item--white  { color: var(--white); }
.ph-marquee__item--orange { color: var(--orange); }

.ph-marquee__sep {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: var(--fw-bold);
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
}


/* ================================================
   HOW IT WORKS
   ================================================ */

.how-it-works {
  padding: 6rem 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}

.how-it-works__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.how-it-works__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.how-it-works__eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange-hover);
  margin-bottom: var(--space-sm);
}

.how-it-works__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
}

.how-it-works__title-accent { color: var(--green-dark); }

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

/* Step card — full green backdrop on hover */
.step-card {
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  border-radius: var(--radius-lg);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.step-card:hover {
  background: var(--green-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  z-index: 1;
}

.step-card--divided { border-left: 1px solid var(--gray-100); }
.step-card--divided:hover { border-left-color: transparent; }

.step-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.step-card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.step-card:hover .step-card__icon { background: rgba(255,255,255,0.15); }

.step-card__icon [data-lucide],
.step-card__icon svg { width: 22px; height: 22px; color: var(--white); stroke-width: 2.2; }

.step-card__number {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 4rem;
  color: var(--gray-100);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  transition: color 0.25s ease;
}

.step-card:hover .step-card__number { color: rgba(255,255,255,0.10); }

.step-card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: var(--text-lg);
  color: var(--text-dark);
  line-height: var(--lh-tight);
  transition: color 0.25s ease;
}

.step-card:hover .step-card__title { color: var(--white); }

.step-card__desc {
  font-size: var(--text-base);
  color: var(--gray-500);
  line-height: var(--lh-relaxed);
  flex: 1;
  transition: color 0.25s ease;
}

.step-card:hover .step-card__desc { color: rgba(255,255,255,0.68); }

.how-it-works__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--fw-extrabold);
  color: var(--text-dark);
  text-decoration: none;
  margin-top: var(--space-sm);
  transition: color 0.25s ease;
}

.step-card:hover .how-it-works__cta { color: var(--orange); }
.how-it-works__cta [data-lucide],
.how-it-works__cta svg { width: 16px; height: 16px; stroke-width: 2.5; }

@media (max-width: 768px) {
  .how-it-works__steps { grid-template-columns: 1fr; }
  .step-card--divided  { border-left: none; border-top: 1px solid var(--gray-100); }
  .how-it-works__inner { padding: 0 var(--space-md); }
}


/* ================================================
   TESTIMONIALS
   ================================================ */

.testimonials {
  padding: 6rem 0;
  background: var(--off-white);
}

.testimonials__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.testimonials__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.testimonials__eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange-hover);
  margin-bottom: var(--space-sm);
}

.testimonials__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-dark);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
}

.testimonials__title-accent { color: var(--green-dark); }

.testimonial-featured {
  background: var(--green-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.testimonial-featured__quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.18);
  line-height: 1;
  margin-bottom: var(--space-lg);
  user-select: none;
}

.testimonial-featured__text {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--white);
  line-height: 1.5;
  margin-bottom: var(--space-xl);
}

.testimonial-featured__footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.testimonial-featured__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.20);
}

.testimonial-featured__author { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.testimonial-featured__name {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  color: var(--white);
}
.testimonial-featured__role { font-size: var(--text-sm); color: rgba(255,255,255,0.50); }
.testimonial-featured__stars { font-size: 1.2rem; color: var(--orange); letter-spacing: 2px; }

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.testimonial-card__stars { color: var(--orange); font-size: 0.95rem; letter-spacing: 2px; }
.testimonial-card__text  { font-size: var(--text-base-sm); color: var(--gray-700); line-height: var(--lh-relaxed); flex: 1; }

.testimonial-card__footer {
  display: flex; align-items: center; gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-100);
}

.testimonial-card__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial-card__name   { display: block; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-base-sm); color: var(--text-dark); }
.testimonial-card__role   { display: block; font-size: var(--text-xs); color: var(--gray-400); margin-top: 1px; }

@media (max-width: 640px) {
  .testimonials__grid { grid-template-columns: 1fr; }
  .testimonials__inner { padding: 0 var(--space-md); }
  .testimonial-featured { padding: var(--space-lg); }
}


/* ================================================
   PLATFORM STATS — animated counters
   ================================================ */

.platform-stats {
  background: var(--orange);
  padding: 5rem 0;
}

.platform-stats__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  text-align: center;
}

.platform-stats__eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green-dark);
  opacity: 0.65;
  margin-bottom: var(--space-2xl);
}

.platform-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.platform-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-lg);
}

.platform-stat--divided { border-left: 1px solid rgba(27,75,39,0.20); }

.platform-stat__number {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--green-dark);
  line-height: 1;
  letter-spacing: -0.04em;
}

.platform-stat__label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--green-dark);
  text-align: center;
  line-height: var(--lh-snug);
}

.platform-stats__note {
  margin-top: var(--space-2xl);
  font-size: var(--text-sm);
  color: var(--green-dark);
  opacity: 0.55;
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
}

@media (max-width: 640px) {
  .platform-stats__grid { grid-template-columns: repeat(2,1fr); gap: var(--space-xl) 0; }
  .platform-stat--divided:nth-child(3) { border-left: none; border-top: 1px solid rgba(27,75,39,0.15); padding-top: var(--space-xl); }
  .platform-stat--divided:nth-child(4) { border-top: 1px solid rgba(27,75,39,0.15); padding-top: var(--space-xl); }
  .platform-stats__inner { padding: 0 var(--space-md); }
}


/* ================================================
   CTA BANNER
   ================================================ */

.cta-banner {
  background: var(--green-dark);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cta-banner::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  right: -80px; top: -100px;
  pointer-events: none;
}

.cta-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-banner__text { flex: 1; min-width: 0; }

.cta-banner__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: var(--lh-tight);
  margin-bottom: var(--space-sm);
}

.cta-banner__sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.62);
  line-height: var(--lh-relaxed);
  max-width: 420px;
}

.cta-banner__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .cta-banner__inner { flex-direction: column; padding: 0 var(--space-md); }
  .cta-banner__actions { width: 100%; flex-direction: column; }
  .cta-banner__actions .btn { width: 100%; justify-content: center; }
}


/* ================================================
   ROLE SECTION — Resident · Officer · Captain
   ================================================ */

.role-section {
  padding: 6rem 0;
  background: var(--off-white);
  border-top: 4px solid var(--orange);
}

.role-section__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.role-section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.role-section__eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange-hover);
  margin-bottom: var(--space-sm);
}

.role-section__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.role-section__title-accent { color: var(--green-dark); }

.role-section__sub {
  font-size: var(--text-base);
  color: var(--gray-500);
  line-height: var(--lh-relaxed);
  max-width: 540px;
  margin: 0 auto;
}

/* Three-column grid — equal height */
.role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

/* ── Base role card ─────────────────────────── */
.role-card {
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border: 1.5px solid var(--gray-100);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  /* Hover turns the whole card dark green */
  transition: background 0.25s ease, border-color 0.25s ease,
              box-shadow 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.role-card:hover {
  background: var(--green-dark);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

/* ── Header row ─────────────────────────────── */
.role-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.role-card__icon-wrap {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

/* Default icon backgrounds per card */
.role-card--resident .role-card__icon-wrap { background: var(--alpha-green-10); color: var(--green-dark); }
.role-card--officer  .role-card__icon-wrap { background: rgba(255,161,53,0.14); color: var(--orange-hover); }
.role-card--captain  .role-card__icon-wrap { background: var(--alpha-green-10); color: var(--green-dark); }

/* On hover — glass tile */
.role-card:hover .role-card__icon-wrap {
  background: rgba(255,255,255,0.12) !important;
  color: var(--orange) !important;
}

.role-card__icon-wrap [data-lucide],
.role-card__icon-wrap svg { width: 20px; height: 20px; stroke-width: 2; transition: color 0.25s ease; }

.role-card:hover .role-card__icon-wrap [data-lucide],
.role-card:hover .role-card__icon-wrap svg { color: var(--orange); }

/* Label group — primary label + sub tag */
.role-card__label-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.role-card__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-extrabold);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  transition: color 0.25s ease;
}

.role-card--resident .role-card__label { color: var(--green-dark); }
.role-card--officer  .role-card__label { color: var(--orange-hover); }
.role-card--captain  .role-card__label { color: var(--green-dark); }

.role-card:hover .role-card__label { color: var(--orange); }

.role-card__label-sub {
  font-family: var(--font-display);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  transition: color 0.25s ease;
}

.role-card:hover .role-card__label-sub { color: rgba(255,255,255,0.40); }

/* ── Title ──────────────────────────────────── */
.role-card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--text-dark);
  transition: color 0.25s ease;
}

.role-card:hover .role-card__title { color: var(--white); }

/* ── Desc ───────────────────────────────────── */
.role-card__desc {
  font-size: var(--text-base-sm);
  line-height: var(--lh-relaxed);
  color: var(--gray-500);
  transition: color 0.25s ease;
}

.role-card:hover .role-card__desc { color: rgba(255,255,255,0.65); }

/* ── Feature list ───────────────────────────── */
.role-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--gray-100);
  transition: border-color 0.25s ease;
}

.role-card:hover .role-card__list { border-top-color: rgba(255,255,255,0.12); }

.role-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--text-base-sm);
  font-weight: var(--fw-medium);
  color: var(--gray-700);
  transition: color 0.25s ease;
}

.role-card:hover .role-card__list li { color: rgba(255,255,255,0.82); }

.role-card__list [data-lucide],
.role-card__list svg {
  width: 14px; height: 14px;
  stroke-width: 3;
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.role-card--resident .role-card__list [data-lucide],
.role-card--resident .role-card__list svg { color: var(--green-dark); }

.role-card--officer .role-card__list [data-lucide],
.role-card--officer .role-card__list svg { color: var(--orange-hover); }

.role-card--captain .role-card__list [data-lucide],
.role-card--captain .role-card__list svg { color: var(--green-dark); }

.role-card:hover .role-card__list [data-lucide],
.role-card:hover .role-card__list svg { color: #4ade80; }

/* ── CTA button ─────────────────────────────── */
.role-card__btn { margin-top: auto; padding-top: var(--space-md); }

/* Button style shifts on hover so it stays readable */
/* All role card buttons are green; turn orange on card hover */
.role-card:hover .btn--green {
  background: var(--orange);
  color: var(--black);
  box-shadow: 0 2px 8px rgba(255,161,53,0.35);
}

/* ── Note text ──────────────────────────────── */
.role-card__note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--gray-400);
  line-height: var(--lh-relaxed);
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  transition: color 0.25s ease;
}

.role-card:hover .role-card__note { color: rgba(255,255,255,0.38); }

.role-card__note [data-lucide],
.role-card__note svg { width: 12px; height: 12px; flex-shrink: 0; margin-top: 2px; }

@media (max-width: 900px) {
  .role-cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .role-section__inner { padding: 0 var(--space-md); }
}
