/* ============================================================
   SELF-HOSTED FONTS (eliminates Google Fonts external CDN)
   ============================================================ */
@font-face {
  font-family: 'Abel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/abel-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('./fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


:root {
  /* ── Official e-matica.com brand palette ── */
  --green:        #20C720;   /* GREEN */
  --green-dark:   #189818;   /* GREEN darkened */
  --navy:         #133657;   /* EMATICA BLUE */
  --navy-deep:    #0d2540;   /* EMATICA BLUE darkened — dark sections */
  --navy-darkest: #081525;   /* EMATICA BLUE darkest — footer */
  --soft-grey:    #F4F4F4;   /* SOFT GREY */
  --white:        #FFFFFF;   /* WHITE */
  --body-bg:      #F4F4F4;   /* SOFT GREY */
  --text-dark:    #133657;   /* EMATICA BLUE for dark text */
  --text-mid:     #3d5a76;
  --text-light:   #6b7280;
  --card-border:  #dde8f0;
  --radius:       10px;
  --shadow-sm:    0 1px 4px rgba(19,54,87,0.07);
  --shadow-md:    0 4px 16px rgba(19,54,87,0.1);
  --shadow-lg:    0 8px 32px rgba(19,54,87,0.13);
  --font-head:    'Abel', sans-serif;
  --font-body:    'Roboto', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-mid);
  background: var(--body-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container   { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.section     { padding: 80px 0; }
.text-center { text-align: center; }
.mx-auto     { margin-left: auto; margin-right: auto; }

.bg-white   { background: #ffffff; }
.bg-light   { background: var(--soft-grey); }
.bg-dark    { background: var(--navy-deep);    border-top: 1px solid rgba(32,199,31,0.1); }
.bg-darkest { background: var(--navy-darkest); border-top: 1px solid rgba(255,255,255,0.05); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background: rgba(11, 32, 58, 0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-logo img {
  width: 160px;
  height: auto;
}

.navbar-links {
  display: flex;
  list-style: none;
  gap: 0;
  margin-left: auto;
}

.navbar-links a {
  display: block;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  line-height: 72px;
  white-space: nowrap;
  transition: color 0.2s;
}

.navbar-links a:hover { color: var(--green); }

.navbar-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--green);
  color: #000000;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.navbar-cta:hover {
  background: var(--green-dark);
  color: #ffffff;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   SHARED BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-green {
  background: var(--green);
  color: #000000;
}

.btn-green:hover {
  background: var(--green-dark);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(32,199,31,0.35);
}

.btn-outline {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
}

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

.btn-lg { font-size: 1.05rem; padding: 15px 36px; }

/* ============================================================
   SECTION TYPOGRAPHY
   ============================================================ */
.section-num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 400;
  color: rgba(32,199,31,0.15);
  line-height: 1;
  margin-bottom: -6px;
  letter-spacing: -0.02em;
}

.section-num-light { color: rgba(255,255,255,0.14); }

/* Inline brand name styled to match logo typography */
.brand-inline {
  font-family: 'Abel', sans-serif;
  font-size: 1.15em;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #ffffff;
  white-space: nowrap;
  vertical-align: baseline;
  line-height: 1;
  text-transform: none;
}

.section-badge {
  display: inline-block;
  background: rgba(32,199,31,0.1);
  color: var(--green-dark);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}

.badge-cyan {
  background: rgba(32,199,32,0.15);
  color: var(--green);
  border: 1px solid rgba(32,199,32,0.3);
}

.section-title {
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.2;
}

.title-white { color: #ffffff; }

.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.75;
}

.sub-white { color: rgba(255,255,255,0.7); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 132px 0 60px; /* top accounts for fixed navbar height (72px) */
  background-color: var(--navy-deep);
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(7,21,36,0.80) 0%,
    rgba(7,21,36,0.52) 55%,
    rgba(7,21,36,0.20) 100%
  );
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(32,199,31,0.2);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.flag-india {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  vertical-align: middle;
  flex-shrink: 0;
}

.hero-text h1 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 3.8vw, 3.4rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.highlight { color: var(--green); }

.hero-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-bottom: 28px;
}

.hero-cta-group { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.trust-row { display: flex; gap: 20px; flex-wrap: wrap; }

.trust-item {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
}
.trust-item i { color: var(--green); margin-right: 5px; font-size: 0.8rem; }

.hero-stats-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 3px solid var(--green);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(10px);
}

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.stat-item {
  text-align: center;
  padding: 20px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-num.green  { color: var(--green); }
.stat-num.cyan   { color: #ffffff; }
.stat-num.purple { color: var(--green); }
.stat-num.orange { color: #ffffff; }

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  display: block;
  line-height: 1.35;
}

/* ============================================================
   DEMING QUOTE BAR
   ============================================================ */
.quote-bar {
  background: var(--navy);
  border-top: 3px solid var(--green);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 36px 0;
}

.quote-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.quote-icon {
  width: 42px;
  height: 42px;
  fill: var(--green);
  flex-shrink: 0;
  opacity: 0.75;
}

.quote-content p {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: #ffffff;
  font-style: italic;
  margin-bottom: 14px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quote-signature {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.65;
}

.quote-author span {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ============================================================
   CLIENTS MARQUEE
   ============================================================ */
.marquee-wrap {
  background: #ffffff;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 18px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 24px;
  animation: marquee-scroll 35s linear infinite;
  width: max-content;
}

.marquee-item {
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  padding: 6px 18px;
  background: #f0f2f5;
  border-radius: 6px;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   LOGO BAND – Power/Energy & Pharma sections
   ============================================================ */
.logo-band {
  background: #f7f8fa;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 28px 0 32px;
}

.logo-band--pharma {
  background: #ffffff;
  border-top: none;
}

.logo-band-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 0 24px;
}

.logo-band-label {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #1e3a5f;
  line-height: 1.2;
  display: block;
  position: relative;
  padding-bottom: 14px;
}

.logo-band-label::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: 12px auto 0;
}

.logo-band-track-wrap {
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.logo-band-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: logo-band-scroll 35s linear infinite;
}

.logo-band-track--reverse {
  animation: logo-band-scroll-reverse 38s linear infinite;
}

/* Uniform pill — company name text */
.logo-pill {
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border: 1.5px solid rgba(30,58,95,0.12);
  border-radius: 50px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(30,58,95,0.07);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.logo-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(30,58,95,0.5);
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.logo-pill:hover {
  box-shadow: 0 4px 16px rgba(32,199,31,0.18);
  border-color: var(--green);
  transform: translateY(-2px);
}

.logo-pill:hover .logo-name {
  color: #1e3a5f;
}

@keyframes logo-band-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes logo-band-scroll-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ============================================================
   CARD ICON (shared)
   ============================================================ */
.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(32,199,31,0.1);
  color: var(--green);
  font-size: 1.35rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}

/* ============================================================
   PROBLEMS — dark section, e-matica.com gradient-tile style
   ============================================================ */
.problems-section {
  background: var(--navy-deep);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(32,199,31,0.04) 0%, transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(42,100,190,0.05) 0%, transparent 50%);
  border-top: 1px solid rgba(32,199,31,0.1);
  padding: 80px 0;
}

/* Two-column header: number+badge left, title+sub right */
.problems-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.problems-header-label { padding-top: 4px; }

.problems-header-content .section-title { margin-bottom: 12px; }
.problems-header-content .section-sub   { margin-bottom: 0; }

.badge-muted {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Impact stats bar */
.impact-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(14,34,68,0.9) 0%, rgba(8,22,40,0.95) 100%);
  border: 1px solid rgba(32,199,31,0.18);
  border-radius: 16px;
  padding: 32px 0;
  margin-bottom: 48px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}

.impact-stat {
  flex: 1;
  text-align: center;
  padding: 0 32px;
}

.impact-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.impact-lbl {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.5;
  max-width: 180px;
  margin: 0 auto;
}

.impact-divider {
  width: 1px;
  height: 52px;
  background: rgba(32,199,31,0.2);
  flex-shrink: 0;
}

/* ── Challenge tiles: individual cards ── */
.challenge-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 48px;
}

.challenge-tile {
  position: relative;
  flex: 0 0 calc(33.333% - 14px);
  background: linear-gradient(150deg, #0e2244 0%, #081628 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 3px solid rgba(32,199,31,0.65);
  border-radius: 18px;
  padding: 30px 26px 28px;
  overflow: hidden;
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

/* Ambient radial glow (top-right corner) */
.challenge-tile::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(32,199,31,0.08) 0%, transparent 68%);
  pointer-events: none;
  transition: opacity 0.32s ease;
}

/* Bottom-left subtle blue glow */
.challenge-tile::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(42,100,190,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.challenge-tile:hover {
  transform: translateY(-7px);
  border-color: rgba(32,199,31,0.3);
  border-top-color: var(--green);
  box-shadow: 0 20px 48px rgba(32,199,31,0.12), 0 4px 18px rgba(0,0,0,0.55);
}

.challenge-tile:hover::before { opacity: 1.6; }

/* Ghost number — large, top-right watermark */
.ct-num {
  position: absolute;
  top: 12px; right: 18px;
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 400;
  color: rgba(32,199,31,0.06);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
}

/* Icon box — green-tinted */
.ct-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(32,199,31,0.1);
  border: 1px solid rgba(32,199,31,0.28);
  color: var(--green);
  font-size: 1.3rem;
  margin-bottom: 22px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.challenge-tile:hover .ct-icon {
  background: rgba(32,199,31,0.18);
  box-shadow: 0 0 22px rgba(32,199,31,0.2);
}

.challenge-tile h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.challenge-tile p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.50);
  line-height: 1.7;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Bottom CTA inside problems section */
.problems-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.problems-cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
}

.problems-cta strong { color: #ffffff; }

/* ============================================================
   SOLUTION
   ============================================================ */
/* ── Legacy flow (kept for safety) ── */
.flow { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: nowrap; margin: 40px 0; }
.flow-step { background: #ffffff; border: 1px solid var(--card-border); border-radius: var(--radius); padding: 14px 10px; text-align: center; min-width: 0; flex: 1; max-width: 155px; transition: border-color 0.2s, box-shadow 0.2s; }
.flow-step:hover { border-color: var(--green); box-shadow: 0 2px 12px rgba(32,199,31,0.15); }
.flow-icon { display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--green); margin-bottom: 6px; height: 32px; }
.flow-label { font-size: 0.75rem; font-weight: 600; color: var(--text-dark); line-height: 1.3; }
.flow-arrow { font-size: 0.85rem; color: var(--green); flex-shrink: 0; }

/* ── Flow Cards (new design) ── */
.flow-cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 48px 0 40px;
  padding-top: 28px; /* space for floating badge overhang */
}

.flow-card {
  position: relative;
  flex: 1;
  max-width: 200px;
  background: linear-gradient(180deg, #0d2540 0%, #081a30 100%);
  border: 1px solid rgba(80, 160, 230, 0.2);
  border-radius: 16px;
  padding: 40px 18px 26px; /* top padding accommodates badge overlap */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.flow-card:hover {
  border-color: var(--green);
  box-shadow: 0 6px 28px rgba(32, 199, 31, 0.2);
  transform: translateY(-4px);
}

/* Badge floats on top of the card border */
.fc-num {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: #081525; /* matches .bg-darkest section bg */
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.fc-icon {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.fc-icon svg {
  max-height: 100%;
  max-width: 100%;
  overflow: visible;
}

.fc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 12px;
  line-height: 1.35;
}

.fc-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.fc-line {
  width: 36px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin-top: 20px;
  flex-shrink: 0;
}

/* Arrow aligns vertically with the center of the icon area.
   Calculation: flow-cards padding-top(28) + card padding-top(40) + half icon height(48) - half arrow(10) = 106px */
.fc-arrow {
  color: var(--green);
  font-size: 1.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 5px;
  align-self: flex-start;
  margin-top: 106px;
}

.sol-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.sol-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(32,199,31,0.06);
  border: 1px solid rgba(32,199,31,0.16);
}

.check { color: var(--green); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; font-weight: 700; }
.sol-feature h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.sol-feature p  { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; }

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  padding-top: 22px; /* room for floating bc-num badge */
}

.benefit-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.benefit-card:hover {
  border-color: rgba(32,199,31,0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(32,199,31,0.14);
}

/* Floating number badge – top-right corner */
.bc-num {
  position: absolute;
  top: -18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: #0d2540; /* matches .bg-dark section */
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Dashed circle wrapper around icon */
.bc-icon-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px dashed rgba(32,199,31,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.bc-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(32,199,31,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--green);
}

.bc-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.bc-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.bc-divider {
  width: 36px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  margin: 16px 0;
  flex-shrink: 0;
}

/* Stat box at the bottom of each card */
.bc-stat {
  width: 100%;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.bc-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--green);
  flex-shrink: 0;
}

.bc-stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
  display: block;
  line-height: 1.1;
}

.bc-stat-lbl {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
  display: block;
  margin-top: 2px;
}

/* ============================================================
   USE CASES
   ============================================================ */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.usecase-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.25s, transform 0.25s, border-top-color 0.25s;
}

.usecase-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-top-color: var(--green); }
.usecase-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.usecase-card p  { font-size: 0.88rem; color: var(--text-mid); line-height: 1.65; }

.tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.73rem;
  font-weight: 700;
  background: rgba(32,199,31,0.1);
  color: var(--green-dark);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.industry-card {
  --accent: #20c71f;
  background: rgba(8, 20, 42, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.industry-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Gradient circle with floating dot */
.ic-circle {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--ic-grad, linear-gradient(135deg,#062a06,#18991a));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.ic-circle::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.ic-circle i {
  font-size: 2.4rem;
  color: rgba(255,255,255,0.92);
}

.industry-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.ic-divider {
  width: 36px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.ic-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.ic-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  margin-top: 20px;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}

.ic-arrow:hover { opacity: 0.85; transform: scale(1.1); }

/* ============================================================
   CERTIFICATE SECTION
   ============================================================ */
.cert-section {
  background: linear-gradient(160deg, #071a2e 0%, #0a2040 55%, #081525 100%);
  position: relative;
  overflow: hidden;
  padding: 48px 0;
}

.cert-section::before {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse, rgba(32,199,31,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cert-header {
  text-align: center;
  margin-bottom: 28px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(32,199,31,0.12);
  border: 1px solid rgba(32,199,31,0.35);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.cert-title {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 14px;
  line-height: 1.25;
}

.cert-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Viewer wrapper */
.cert-viewer-wrap {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.cert-glow {
  position: absolute;
  inset: -30px;
  border-radius: 32px;
  background: radial-gradient(ellipse at center, rgba(32,199,31,0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Decorative frame with corner accents */
.cert-frame {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(32,199,31,0.35);
  background: #ffffff;
  padding: 0;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(32,199,31,0.08);
}

/* Certificate image */
.cert-img {
  width: 100%;
  display: block;
  border-radius: 18px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

#certImageWrap {
  cursor: zoom-in;
  overflow: hidden;
}

#certImageWrap:hover .cert-img {
  transform: scale(1.015);
  filter: brightness(1.05);
}

.cert-zoom-hint {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(0,0,0,0.65);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

#certImageWrap:hover .cert-zoom-hint { opacity: 1; }

/* ── Modal ── */
.cert-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
  animation: modalFadeIn 0.25s ease;
}

.cert-modal.open { display: flex; }

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.cert-modal-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  border: 1px solid rgba(32,199,31,0.3);
}

.cert-modal-img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.cert-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.cert-modal-close:hover { background: rgba(255,0,0,0.7); transform: scale(1.1); }

/* Corner bracket decorations */
.cert-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--green);
  border-style: solid;
  opacity: 0.7;
}
.cert-corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.cert-corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.cert-corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.cert-corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }

/* Action buttons */
.cert-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.btn-outline-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-outline-green:hover {
  background: var(--green);
  color: #000000;
}

/* ============================================================
   CASE STUDY
   ============================================================ */
.case-card {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-radius: 18px;
  padding: 48px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.case-card h3 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 16px;
  margin-top: 12px;
}

.case-card p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 28px;
  line-height: 1.75;
  font-size: 0.95rem;
}

.case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.metric {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.metric-num   { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 400; color: var(--green); }
.metric-label { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.62); margin-top: 4px; }

/* ============================================================
   WHY EMATICA
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.25s, transform 0.25s, border-top-color 0.25s;
}

.why-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-top-color: var(--green); }
.why-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.why-card p  { font-size: 0.88rem; color: var(--text-mid); line-height: 1.65; }

/* ============================================================
   LEAD FORM
   ============================================================ */
/* ── Contact Section ── */
.contact-section {
  background: linear-gradient(160deg, #071a2e 0%, #0d2540 50%, #081525 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32,199,31,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.contact-header {
  text-align: center;
  margin-bottom: 52px;
}

.contact-main-title {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.25;
  margin: 12px 0 14px;
}

.title-green { color: var(--green); }

.contact-main-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.benefit-list { list-style: none; margin-bottom: 28px; }

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.benefit-list li:last-child { border-bottom: none; }

.check-icon { color: var(--green); font-size: 1rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* Contact Info Card */
.contact-info-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(32,199,31,0.25);
  border-radius: 16px;
  overflow: hidden;
}

.cic-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: rgba(32,199,31,0.1);
  border-bottom: 1px solid rgba(32,199,31,0.2);
}

.cic-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #0a8a0a);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.cic-role {
  font-size: 0.72rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 3px;
  font-weight: 600;
}

.cic-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.cic-details { padding: 8px 0; }

.cic-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}

.cic-row:last-child { border-bottom: none; }
.cic-row:hover { background: rgba(255,255,255,0.05); }

.cic-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(32,199,31,0.12);
  border: 1px solid rgba(32,199,31,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.cic-lbl {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.cic-val {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
}

/* Form */
.lead-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(8px);
}

.lead-form h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 6px;
}

.form-sub { font-size: 0.87rem; color: rgba(255,255,255,0.5); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.label-optional { font-weight: 400; color: rgba(255,255,255,0.35); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-group select option { background: #0d2540; color: #ffffff; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(32,199,31,0.06);
  box-shadow: 0 0 0 3px rgba(32,199,31,0.14);
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--green);
  color: #000000;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.form-submit:hover:not(:disabled) {
  background: var(--green-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32,199,31,0.35);
}

.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.form-note {
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.35);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.label-optional { font-size: 0.75rem; font-weight: 400; color: var(--text-light); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: #ffffff;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.97rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}

.faq-q:hover { background: var(--soft-grey); }

.faq-arrow { font-size: 0.85rem; color: var(--green); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.active .faq-arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-a { max-height: 300px; }

.faq-a-inner {
  padding: 0 22px 18px;
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.75;
  border-top: 1px solid #f0f2f5;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-top: 3px solid var(--green);
  color: #ffffff;
  padding: 80px 30px;
  text-align: center;
}

.final-cta h2 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-darkest);
  padding: 40px 0 0;
  border-top: 3px solid var(--green-dark);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo img { width: 150px; height: auto; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-contact a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
}

.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ============================================================
   SCROLL-TO-TOP
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(32,199,31,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 9999;
}

.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--green-dark); }

.scroll-top-btn i { font-size: 0.95rem; color: #000; }
.scroll-top-btn:hover i { color: #ffffff; }

/* ============================================================
   UNIFIED TWO-COLUMN SECTION HEADER
   ============================================================ */
.sec-header {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
}

.sec-header-label { padding-top: 6px; }
.sec-header-body .section-title { margin-bottom: 12px; }
.sec-header-body .section-sub   { margin-bottom: 0; }

/* ============================================================
   DARK BACKGROUND CONTEXT OVERRIDES
   (covers bg-dark = navy-deep, bg-darkest = navy-darkest)
   ============================================================ */

/* dark card icon glow */
.bg-dark .card-icon,
.bg-darkest .card-icon {
  background: rgba(32,199,31,0.15);
  filter: drop-shadow(0 0 8px rgba(32,199,31,0.35));
}

/* typography */
.bg-dark .section-title,
.bg-darkest .section-title        { color: #ffffff; }

.bg-dark .section-sub,
.bg-darkest .section-sub          { color: rgba(255,255,255,0.68); }

.bg-dark .section-num,
.bg-darkest .section-num          { color: rgba(255,255,255,0.1); }

.bg-dark .section-badge,
.bg-darkest .section-badge        {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.62);
}

/* flow steps */
.bg-dark .flow-step,
.bg-darkest .flow-step            {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.bg-dark .flow-step:hover,
.bg-darkest .flow-step:hover      {
  background: rgba(255,255,255,0.1);
  border-color: var(--green);
  box-shadow: 0 2px 14px rgba(32,199,31,0.2);
}
.bg-dark .flow-label,
.bg-darkest .flow-label           { color: #ffffff; }

/* solution feature boxes */
.bg-dark .sol-feature,
.bg-darkest .sol-feature          {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.bg-dark .sol-feature h4,
.bg-darkest .sol-feature h4       { color: #ffffff; }
.bg-dark .sol-feature p,
.bg-darkest .sol-feature p        { color: rgba(255,255,255,0.62); }

/* use-case cards */
.bg-dark .usecase-card,
.bg-darkest .usecase-card         {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  border-top-color: transparent;
}
.bg-dark .usecase-card:hover,
.bg-darkest .usecase-card:hover   {
  background: rgba(255,255,255,0.09);
  box-shadow: 0 6px 30px rgba(0,0,0,0.4);
  border-top-color: var(--green);
}
.bg-dark .usecase-card h3,
.bg-darkest .usecase-card h3      { color: #ffffff; }
.bg-dark .usecase-card p,
.bg-darkest .usecase-card p       { color: rgba(255,255,255,0.62); }

/* industry cards — handled by component CSS */

/* why cards */
.bg-dark .why-card,
.bg-darkest .why-card             {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  border-top-color: transparent;
}
.bg-dark .why-card:hover,
.bg-darkest .why-card:hover       {
  background: rgba(255,255,255,0.09);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transform: translateY(-3px);
  border-top-color: var(--green);
}
.bg-dark .why-card h3,
.bg-darkest .why-card h3          { color: #ffffff; }
.bg-dark .why-card p,
.bg-darkest .why-card p           { color: rgba(255,255,255,0.62); }

/* FAQ items */
.bg-dark .faq-list,
.bg-darkest .faq-list             { max-width: 800px; }

.bg-dark .faq-item,
.bg-darkest .faq-item             {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}
.bg-dark .faq-item.active,
.bg-darkest .faq-item.active      { border-color: rgba(32,199,31,0.35); }

.bg-dark .faq-q,
.bg-darkest .faq-q                { color: #ffffff; }
.bg-dark .faq-q:hover,
.bg-darkest .faq-q:hover          { background: rgba(255,255,255,0.06); }

.bg-dark .faq-a-inner,
.bg-darkest .faq-a-inner          {
  color: rgba(255,255,255,0.65);
  border-top-color: rgba(255,255,255,0.08);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .navbar-links a { padding: 0 11px; font-size: 0.85rem; }
}

@media (max-width: 900px) {
  .sec-header            { grid-template-columns: 1fr; gap: 16px; }
  .problems-header       { grid-template-columns: 1fr; gap: 16px; }
  .challenge-tile        { flex: 0 0 calc(50% - 10px); }
  .benefits-grid         { grid-template-columns: repeat(3, 1fr); }
  .industries-grid       { grid-template-columns: repeat(3, 1fr); }
  .usecases-grid         { grid-template-columns: repeat(2, 1fr); }
  .why-grid              { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .navbar-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 12px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
  }

  .navbar-links.open { display: flex; }

  .navbar-links a { line-height: normal; padding: 12px 30px; font-size: 1rem; }

  .navbar-cta { display: none; }

  .navbar-toggle { display: flex; }

  .hero-inner    { grid-template-columns: 1fr; }
  .hero          { min-height: auto; padding: 100px 0 60px; }
  .hero-text     { text-align: center; }
  .hero-cta-group { justify-content: center; }
  .trust-row     { justify-content: center; }
  .hero-stats-card { max-width: 440px; margin: 0 auto; }

  .case-card     { grid-template-columns: 1fr; }
  .form-wrapper  { grid-template-columns: 1fr; gap: 32px; }
  .contact-main-title { font-size: 1.7rem; }

  .footer-top    { flex-direction: column; align-items: flex-start; }
  .footer-contact { align-items: flex-start; }
}

/* ── Sticky CTAs ── */
.sticky-ctas {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
}

.sticky-cta {
  width: 52px;
  height: 52px;
  border-radius: 10px 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--green);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: -3px 3px 12px rgba(0,0,0,0.3);
  transition: width 0.2s ease, box-shadow 0.2s ease;
}

.sticky-cta:hover {
  width: 58px;
  box-shadow: -5px 4px 18px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .sticky-cta { width: 46px; height: 46px; font-size: 1.15rem; }
}

@media (max-width: 600px) {
  .challenge-tile  { flex: 0 0 100%; }
  .impact-bar      { flex-direction: column; gap: 20px; padding: 24px; }
  .impact-divider  { width: 60px; height: 1px; }
  .problems-cta    { flex-direction: column; text-align: center; }
  .benefits-grid   { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .usecases-grid   { grid-template-columns: 1fr; }
  .why-grid        { grid-template-columns: 1fr; }

  .container      { padding: 0 16px; }
  .section        { padding: 52px 0; }
  .section-title  { font-size: 1.75rem; }
  .hero-text h1   { font-size: 1.75rem; }
  .stat-grid      { grid-template-columns: 1fr 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .final-cta h2   { font-size: 1.75rem; }
  .case-card      { padding: 28px; }
  .flow           { gap: 4px; flex-wrap: wrap; }
  .flow-step      { min-width: 80px; max-width: 100px; padding: 10px 6px; }
  .flow-arrow     { font-size: 0.8rem; }
  .flow-cards     { flex-wrap: wrap; gap: 12px; }
  .flow-card      { max-width: calc(33% - 8px); min-width: 140px; }
  .fc-arrow       { display: none; }
  .quote-inner    { gap: 16px; }
  .quote-icon     { width: 30px; height: 30px; }
  .scroll-top-btn { bottom: 20px; right: 20px; }

  .exit-popup-card { padding: 36px 24px; margin: 16px; }
  .exit-popup-headline { font-size: 1.4rem; }
}

/* ============================================================
   EXIT INTENT POPUP
   ============================================================ */
.exit-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.exit-popup.open {
  display: flex;
}

.exit-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 37, 0.82);
  backdrop-filter: blur(4px);
  animation: epFadeIn 0.3s ease both;
}

@keyframes epFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.exit-popup-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #0d2540 0%, #133657 100%);
  border: 1px solid rgba(32, 199, 31, 0.3);
  border-radius: 20px;
  padding: 48px 44px;
  max-width: 480px;
  width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(32, 199, 31, 0.1);
  animation: epSlideUp 0.35s ease both;
}

@keyframes epSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.exit-popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.exit-popup-close:hover {
  background: rgba(32, 199, 31, 0.15);
  color: #20c71f;
}

.exit-popup-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(32, 199, 31, 0.12);
  border: 2px solid rgba(32, 199, 31, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.exit-popup-icon i {
  font-size: 1.8rem;
  color: #20c71f;
}

.exit-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(32, 199, 31, 0.12);
  border: 1px solid rgba(32, 199, 31, 0.3);
  color: #20c71f;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.exit-popup-headline {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.exit-popup-headline span {
  color: #20c71f;
}

.exit-popup-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Form */
.exit-popup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.exit-popup-field {
  text-align: left;
}

.exit-popup-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.exit-popup-field label i {
  color: #20c71f;
  margin-right: 4px;
}

.exit-popup-field .req {
  color: #20c71f;
}

.exit-popup-field input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.exit-popup-field input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.exit-popup-field input:focus {
  border-color: rgba(32, 199, 31, 0.6);
  background: rgba(255, 255, 255, 0.09);
}

.popup-submit {
  width: 100%;
  padding: 14px 20px;
  background: #20c71f;
  color: #000000;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 4px;
}

.popup-submit:hover:not(:disabled) {
  background: #18a818;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32, 199, 31, 0.35);
}

.popup-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.exit-popup-privacy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.exit-popup-privacy i {
  color: rgba(32, 199, 31, 0.5);
}
