/* ===== ELLEM Digital Finance — shared stylesheet ===== */

:root {
  --navy: #0a1420;
  --emerald: #10b981;
  --emerald-dark: #0e9e6e;
  --muted: #8a97a6;
  --white: #ffffff;
  --border: #e2e8f0;
  --font-sans: 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: #1f2430;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  margin: 0;
  color: var(--navy);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-muted { color: var(--muted); }
.text-emerald { color: var(--emerald); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--emerald);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--emerald-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: #e2e8f0;
}

.btn-outline-emerald {
  background: transparent;
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: var(--emerald-dark);
}

.btn-outline-emerald:hover {
  background: rgba(16, 185, 129, 0.08);
}

.btn-tooltip {
  position: relative;
}

.btn-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 220px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  box-shadow: 0 12px 24px -6px rgba(10, 20, 32, 0.4);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.btn-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 0.2rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent;
  border-top-color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.btn-tooltip:hover::after,
.btn-tooltip:hover::before,
.btn-tooltip:focus-visible::after,
.btn-tooltip:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.link-emerald {
  color: var(--emerald);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Navbar ===== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(100, 116, 139, 0.3);
  box-shadow: 0 4px 24px rgba(10, 20, 32, 0.06);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-img {
  height: 3rem;
  width: auto;
  display: block;
}

.logo-fallback {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.01em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--emerald);
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

.nav-cta .btn {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.nav-toggle {
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-menu {
  display: none;
  border-top: 1px solid #f1f5f9;
  padding: 0.5rem 1.5rem 1.5rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu .nav-link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.375rem;
}

.mobile-menu .nav-link.active {
  background: rgba(16, 185, 129, 0.1);
}

.mobile-menu-cta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ===== Nav dropdown (Services) ===== */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-caret {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.nav-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 200px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px -12px rgba(10, 20, 32, 0.2);
  padding: 0.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 60;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Invisible bridge so the mouse can travel from the toggle to the menu
   without leaving the hoverable area in between. */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -1rem;
  right: -1rem;
  height: 1rem;
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }

  .nav-dropdown:hover .nav-caret {
    transform: rotate(180deg);
  }
}

.nav-dropdown-link {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald-dark);
}

/* Mobile "Services" accordion */

.mobile-nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.mobile-nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.mobile-nav-group.open .mobile-nav-submenu {
  max-height: 8rem;
}

.nav-sublink {
  padding-left: 1.75rem !important;
  font-weight: 400 !important;
  font-size: 0.85rem !important;
}

/* ===== Sections ===== */

.section {
  padding: 5rem 0;
}

.section-light {
  background: var(--white);
  border-top: 1px solid #f1f5f9;
}

.section-dark {
  background: var(--navy);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald);
  margin: 0 0 0.5rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 600;
}

.section-header p {
  margin-top: 1rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .section-header h2 { font-size: 2.25rem; }
}

/* ===== Page hero band ===== */

.page-hero {
  position: relative;
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.page-hero h1 {
  margin-top: 0.5rem;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--white);
}

.page-hero p {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero-decorated {
  position: relative;
  overflow: hidden;
}

.hero-decorated .container {
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .page-hero h1 { font-size: 3rem; }
}

/* ===== Hero (home) ===== */

.hero {
  position: relative;
  background: var(--navy);
  padding: 5rem 0;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.video-showcase {
  max-width: 900px;
  margin: 2.5rem auto 0;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(10, 20, 32, 0.35);
}

.showcase-video {
  display: block;
  width: 100%;
  height: auto;
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-charts {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-chart {
  position: absolute;
  color: var(--emerald);
  opacity: 0.14;
}

.chart-1 { top: 10%; left: 5%; width: 90px; animation: drift-a 15s ease-in-out infinite; }
.chart-2 { top: 62%; left: 10%; width: 64px; animation: drift-b 19s ease-in-out infinite; }
.chart-3 { top: 15%; right: 7%; width: 78px; animation: drift-c 17s ease-in-out infinite; }
.chart-4 { bottom: 12%; right: 14%; width: 56px; animation: drift-b 21s ease-in-out infinite reverse; }

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(16px, -22px) rotate(4deg); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-14px, 16px) rotate(-3deg); }
}

@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(12px, 12px) rotate(5deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: badge-glow 3.2s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
  50% { box-shadow: 0 0 18px 1px rgba(16, 185, 129, 0.3); }
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

.hero > .container > div:first-child > p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hero-stats dt {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--emerald);
}

.hero-stats dd {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
  .hero-stats dt { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 1fr 1fr; }
}

/* Mock dashboard card */

.dashboard-card {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
}

.dashboard-head .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0;
}

.dashboard-head .title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 0.15rem;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse-ring 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.8); opacity: 0; }
}

.dashboard-tiles {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.dashboard-tiles .tile {
  background: #f8fafc;
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
}

.dashboard-tiles .tile .value {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
}

.dashboard-tiles .tile .label {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  line-height: 1.2;
  color: var(--muted);
}

.dashboard-bars {
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 6rem;
}

.dashboard-bars .bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, var(--emerald), rgba(16, 185, 129, 0.3));
  transition: height 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-caption {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ===== Grids ===== */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* ===== Cards ===== */

.card {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.card-soon {
  position: relative;
  border: 1.5px dashed rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.04);
}

.card-soon .badge-soon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-dark);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== Announcement bar ===== */

.announcement-bar {
  background: rgba(16, 185, 129, 0.06);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.85rem 0;
}

.announcement-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--navy);
}

.announcement-inner p {
  margin: 0;
}

/* Icon-in-circle helper, used outside .card too */
.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  flex-shrink: 0;
}

/* ===== Service tier cards ===== */

.tier-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 1100px; }
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
}

.tier-card.featured {
  border-color: var(--emerald);
  background: var(--navy);
  color: var(--white);
}

.tier-ribbon {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald);
  color: var(--white);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tier-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald);
}

.tier-card h3 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.tier-card.featured h3 { color: var(--white); }
.tier-card:not(.featured) h3 { color: var(--navy); }

.tier-desc {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.tier-card:not(.featured) .tier-desc { color: var(--muted); }
.tier-card.featured .tier-desc { color: #cbd5e1; }

.tier-price {
  margin-top: 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.tier-price span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
}

.tier-card:not(.featured) .tier-price { color: var(--navy); }
.tier-card:not(.featured) .tier-price span { color: var(--muted); }
.tier-card.featured .tier-price { color: var(--white); }
.tier-card.featured .tier-price span { color: #cbd5e1; }

.tier-features {
  margin-top: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tier-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.tier-feature svg {
  margin-top: 0.15rem;
  flex-shrink: 0;
  color: var(--emerald);
}

.tier-feature .feature-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.tier-card:not(.featured) .feature-title { color: var(--navy); }
.tier-card.featured .feature-title { color: var(--white); }

.tier-feature .feature-text {
  font-size: 0.9rem;
}

.tier-card:not(.featured) .feature-text { color: var(--muted); }
.tier-card.featured .feature-text { color: #cbd5e1; }

.tier-card .btn {
  margin-top: 2rem;
}

/* ===== Tools ===== */

.tools-intro {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* ===== Industries ===== */

.industries-grid {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.industry-pill {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

/* ===== Stat grid ===== */

.stat {
  text-align: center;
}

.stat .stat-value {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--emerald);
}

.stat .stat-label {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== Our Approach ===== */

.case-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}

.case-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.case-results {
  max-width: 960px;
  margin: 1.5rem auto 0;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: var(--navy);
  border-radius: 1rem;
  padding: 2rem;
}

.case-results h3 { color: var(--white); }

.case-results-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .case-results-grid { grid-template-columns: repeat(2, 1fr); }
}

.result-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.result-item svg {
  margin-top: 0.15rem;
  flex-shrink: 0;
  color: var(--emerald);
}

.result-item .feature-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.result-item .feature-text {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== CTA band ===== */

.cta-band {
  background: var(--navy);
  padding: 4rem 0;
  text-align: center;
}

.cta-band .container {
  max-width: 640px;
}

.cta-band h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--white);
}

.cta-band p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.cta-band .btn {
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .cta-band h2 { font-size: 2.25rem; }
}

/* ===== Strategist note ===== */

.strategist-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: left;
}

.strategist-note .avatar,
.strategist-note img.avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.strategist-note .avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.9rem;
}

.strategist-note p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== Pull quotes ===== */

.pull-quote,
.pull-quote-invert {
  max-width: 640px;
  margin: 2.5rem auto 0;
  padding: 1.75rem 2rem;
  border-radius: 1rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.pull-quote {
  background: rgba(16, 185, 129, 0.07);
  color: var(--navy);
}

.pull-quote-invert {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.pull-quote-cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

/* ===== Check list (Our Mission) ===== */

.check-grid {
  max-width: 800px;
  margin: 2.5rem auto 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .check-grid { grid-template-columns: repeat(2, 1fr); }
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.section-dark .check-item {
  color: var(--white);
}

.check-item svg {
  flex-shrink: 0;
  color: var(--emerald);
}

/* ===== Ambition list ===== */

.ambition-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .ambition-grid { grid-template-columns: repeat(2, 1fr); }
}

.ambition-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ambition-item .icon-circle {
  width: 2.5rem;
  height: 2.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.9rem;
}

.ambition-item p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Stat callout ===== */

.stat-callout {
  margin-top: 2.5rem;
  text-align: center;
}

.stat-callout .stat-value {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--emerald);
}

.stat-callout .stat-label {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-callout .stat-desc {
  max-width: 34rem;
  margin: 0.85rem auto 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ===== Forms ===== */

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row.two-col { grid-template-columns: repeat(2, 1fr); }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}

.form-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-note svg { color: var(--emerald); flex-shrink: 0; }

.success-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.05);
  border-radius: 1rem;
  padding: 4rem 2rem;
}

.success-box svg { color: var(--emerald); }

.success-box h2 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.success-box p {
  margin-top: 0.5rem;
  max-width: 24rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== Footer ===== */

.footer {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--muted);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  max-width: 50%;
  height: 1px;
  background: var(--emerald);
  box-shadow: 0 0 6px 1px rgba(16, 185, 129, 0.7), 0 0 10px 1px rgba(16, 185, 129, 0.3);
  animation: footer-border-flicker 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes footer-border-flicker {
  0%, 100% { opacity: 1; }
  8% { opacity: 0.35; }
  10% { opacity: 1; }
  12% { opacity: 0.55; }
  14% { opacity: 1; }
  55% { opacity: 1; }
  57% { opacity: 0.45; }
  59% { opacity: 1; }
}

.footer-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.footer > .container {
  position: relative;
  z-index: 1;
}

.footer-inner {
  padding: 3.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

@media (min-width: 1200px) {
  .footer-inner { grid-template-columns: minmax(220px, 1.3fr) repeat(5, 1fr); }
}

.footer .logo-img {
  height: 5rem;
  width: auto;
  max-width: none;
}

.footer-tagline {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.footer-social {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-social a:hover {
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.4);
}

.footer h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}

.footer ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--emerald);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-bottom-links a:hover {
  color: var(--emerald);
}

.footer-bottom-divider {
  color: rgba(255, 255, 255, 0.2);
}



/* ===== Legal pages ===== */

.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.legal-body p {
  margin-bottom: 1.25rem;
}

.legal-meta {
  margin-bottom: 2.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.legal-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--navy);
}

.legal-body > h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--navy);
}

.legal-body ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-body li {
  margin-bottom: 0.5rem;
}

.legal-body li p {
  margin-bottom: 0;
}

.legal-body strong {
  color: var(--navy);
}

.legal-body a {
  color: var(--emerald);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-tbd {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  font-weight: 600;
  font-size: 0.85em;
}

/* ===== Digital illustration (people + live dashboard) ===== */

.illustration-section {
  padding: 3rem 0 5rem;
}

.illustration-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.digital-illustration {
  width: 100%;
  height: auto;
  display: block;
}

.fig-fill { fill: var(--navy); }
.fig-accent { stroke: var(--emerald); }
.screen-fill { fill: var(--white); }
.screen-border { stroke: var(--emerald); }
.axis-line { stroke: #e2e8f0; }
.mini-bar-fill { fill: var(--navy); opacity: 0.15; }

.chart-line {
  stroke: var(--emerald);
  fill: none;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: draw-chart 4s ease-in-out infinite;
}

@keyframes draw-chart {
  0% { stroke-dashoffset: 520; }
  55% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

.mini-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: bar-grow 4s ease-in-out infinite;
}

.mini-bar:nth-child(2) { animation-delay: 0.25s; }
.mini-bar:nth-child(3) { animation-delay: 0.5s; }

@keyframes bar-grow {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.screen-glow {
  fill: var(--emerald);
  opacity: 0.08;
}

.stat-chip {
  position: absolute;
  background: var(--white);
  border-radius: 0.75rem;
  padding: 0.6rem 1rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  text-align: left;
  animation: float 6.5s ease-in-out infinite;
}

.stat-chip .chip-value {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--emerald);
}

.stat-chip .chip-label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.15rem;
  white-space: nowrap;
}

.chip-1 { top: 4%; left: -2%; animation-duration: 7s; }
.chip-2 { top: 8%; right: -2%; animation-duration: 8s; animation-delay: 1s; }
.chip-3 { bottom: 10%; left: 4%; animation-duration: 6.5s; animation-delay: 2s; }

@media (max-width: 560px) {
  .stat-chip { display: none; }
}

/* ===== Chat widget ===== */

.chat-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
}

.chat-toggle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  border: none;
  background: var(--emerald);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 24px -8px rgba(16, 185, 129, 0.55);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.chat-toggle:hover {
  background: var(--emerald-dark);
  transform: scale(1.05);
}

.chat-toggle-icon-close {
  display: none;
}

.chat-open .chat-toggle-icon-open {
  display: none;
}

.chat-open .chat-toggle-icon-close {
  display: block;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 4.25rem;
  width: min(340px, calc(100vw - 3rem));
  max-height: min(480px, calc(100vh - 8rem));
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(10, 20, 32, 0.35);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.chat-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-panel-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.25rem;
}

.chat-panel-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
}

.chat-panel-subtitle {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.chat-panel-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.chat-msg {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.chat-msg-bot {
  align-self: flex-start;
  background: #f1f5f9;
  color: #1f2430;
  border-bottom-left-radius: 0.2rem;
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--emerald);
  color: var(--white);
  border-bottom-right-radius: 0.2rem;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.chat-option-btn {
  text-align: left;
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
  color: var(--emerald-dark);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.chat-option-btn:hover {
  background: rgba(16, 185, 129, 0.15);
}

.chat-option-btn-quiet {
  text-align: center;
  border: none;
  background: none;
  color: var(--muted);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.35rem 0.75rem;
}

.chat-option-btn-quiet:hover {
  background: none;
  color: var(--emerald-dark);
}

.chat-nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  margin-top: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid #f1f5f9;
}

.chat-nav-btn {
  border: none;
  background: none;
  padding: 0.2rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.chat-nav-btn:hover {
  color: var(--emerald-dark);
}

.chat-callback-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.chat-input {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: #1f2430;
}

.chat-input:focus {
  outline: none;
  border-color: var(--emerald);
}

.chat-callback-error {
  font-size: 0.78rem;
  color: #dc2626;
}

.chat-nudge {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.85rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 0.65rem 0.6rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 12px 24px -8px rgba(10, 20, 32, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  z-index: 61;
}

.chat-nudge.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-nudge::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 1.4rem;
  border: 6px solid transparent;
  border-top-color: var(--white);
}

.chat-nudge-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 420px) {
  .chat-widget {
    right: 1rem;
    bottom: 1rem;
  }
}

/* ===== Motion preferences ===== */

@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .dashboard-card,
  .pulse-dot::after,
  .floating-chart,
  .stat-chip,
  .chart-line,
  .mini-bar,
  .footer::before {
    animation: none !important;
  }

  .footer::before {
    opacity: 1 !important;
  }

  .chart-line {
    stroke-dashoffset: 0 !important;
  }

  .dashboard-bars .bar {
    transition: none !important;
  }

  .chat-panel,
  .chat-toggle,
  .chat-nudge {
    transition: none !important;
  }

  .btn-tooltip::after,
  .btn-tooltip::before {
    transition: none !important;
  }

  .nav-dropdown-menu,
  .nav-caret,
  .mobile-nav-submenu {
    transition: none !important;
  }
}
