/* =========================================
   IBFRS — Global Styles
   ========================================= */

:root {
  --blue:       #2563eb;
  --blue-light: #60a5fa;
  --blue-pale:  #eff6ff;
  --blue-dark:  #1d4ed8;
  --teal:       #0d9488;
  --green:      #10b981;
  --orange:     #f59e0b;
  --red:        #ef4444;
  --navy:       #0f172a;
  --bg:         #f8fafc;
  --surface:    #ffffff;
  --border:     #e2e8f0;
  --text:       #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --radius:     12px;
  --radius-lg:  24px;
  --shadow:     0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-md:  0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 {
  font-family: 'Sora', sans-serif;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* =========================================
   UTILITIES & BACKGROUNDS
   ========================================= */
.bg-gradient-1 {
  background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 100% 100%, rgba(13, 148, 136, 0.05) 0%, transparent 50%);
}

.bg-dot-pattern {
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
}

.bg-mesh {
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, hsla(221,83%,93%,1) 0, transparent 50%), 
    radial-gradient(at 50% 0%, hsla(221,83%,93%,1) 0, transparent 50%), 
    radial-gradient(at 100% 0%, hsla(221,83%,93%,1) 0, transparent 50%);
}

.vector-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.vector-shape {
  position: absolute;
  filter: blur(80px);
  opacity: 0.4;
  border-radius: 50%;
  z-index: 0;
}

.shape-1 { width: 400px; height: 400px; background: var(--blue-light); top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: var(--teal); bottom: -50px; left: -50px; }


/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -.02em;
}
.logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
}
.logo-text { color: var(--navy); }

.nav-links {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  padding: 8px 22px;
  background: var(--blue);
  color: #fff;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--nb-brand);
  color: #fff;
  border-radius: 3px;
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover {
 
  /*background: var(--blue-dark);*/
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* =========================================
   SECTION COMMONS
   ========================================= */
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
}
.text-accent { color: var(--blue); }
.underline-accent {
  position: relative;
  display: inline-block;
}
.underline-accent::after {
  content: ''; 
  position: absolute; 
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  border-radius: 3px;
}

.section-header p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.04), 0 1px 3px -1px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(37,99,235,0.05) 0%, transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 18px -6px rgba(0, 0, 0, 0.08), 0 6px 8px -6px rgba(0, 0, 0, 0.03), 0 0 14px rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.3);
}
.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--blue-pale);
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: .75rem;
}
.feature-card p {
  color: var(--text-muted);
  line-height: 1.75;
}

.step-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.step-card {
  flex: 0 1 calc(33.333% - 1rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.04), 0 1px 3px -1px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 1;
}
.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 18px -6px rgba(0, 0, 0, 0.08), 0 6px 8px -6px rgba(0, 0, 0, 0.03);
  border-color: rgba(37,99,235,0.3);
}
.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--blue-pale);
  display: grid;
  place-items: center;
  color: var(--blue);
  margin-bottom: 1rem;
}
.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: .7rem;
}
.step-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.usp-card {
  padding: 2.2rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.04), 0 1px 3px -1px rgba(0, 0, 0, 0.02);
}
.usp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 16px -6px rgba(0, 0, 0, 0.08), 0 5px 7px -6px rgba(0, 0, 0, 0.03);
  border-color: rgba(37,99,235,0.2);
}
.usp-card h3 {
  margin-bottom: .8rem;
  font-size: 1rem;
  color: var(--navy);
}
.usp-card p {
  color: var(--text-muted);
  line-height: 1.75;
}
.usp-cta {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.8rem 1.5rem;
  border-radius: var(--radius-lg);
  background: #eff6ff;
  border: 1px solid rgba(37,99,235,.12);
}
.usp-cta p {
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.secondary-cta {
  padding: 40px 0;
}
.secondary-cta-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.secondary-cta-inner h2 {
  color: #fff;
  margin-bottom: .75rem;
}
.secondary-cta-inner p {
  color: rgba(255,255,255,.85);
  margin: 0;
  max-width: 520px;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.faq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.025);
}
.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 14px -6px rgba(0, 0, 0, 0.065);
  border-color: rgba(37,99,235,0.2);
}
.faq-q {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
}

.faq-q:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.6);
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  display: block;
}

.faq-icon .faq-icon-vert {
  transform-origin: 50% 50%;
  transition: transform 0.18s ease;
}

.faq-item.is-open .faq-icon .faq-icon-vert {
  transform: scaleY(0);
}

.faq-a {
  max-height: 0px;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
  opacity: 0;
  transform: translateY(-6px);
}

.faq-item.is-open .faq-a {
  opacity: 1;
  transform: translateY(0);
}

.faq-a-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.anchor {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}
.anchor:hover {
  text-decoration: underline;
}

.privacy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.privacy-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

.privacy-row label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.privacy-row a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.btn-send {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Map */
.map-wrap {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Info Blocks */
.address-block { margin-bottom: 1.5rem; }
.address-block h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.address-block a {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.5;
  transition: color var(--transition);
}
.address-block a:hover { color: var(--blue); }

.contact-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.contact-info p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* =========================================
   REVEAL ANIMATIONS
   ========================================= */
.reveal, .reveal-right, .benefit-card, .step-card, .usp-card, .faq-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal-right {
  transform: translateX(40px);
}
.reveal.visible, .reveal-right.visible, .benefit-card.visible, .step-card.visible, .usp-card.visible, .faq-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-right.visible {
  transform: translateX(0);
}


/* =========================================
   SECTION SPACING
   ========================================= */
#app > div + div {
  margin-top: 4rem;
}
@media (max-width: 768px) {
  #app > div + div { margin-top: 2.5rem; }
}

/* =========================================
   ULAPGOV HERO (NEW)
   ========================================= */
/* Shared overlap amount — drives both the dashboard's negative margin
   and the following section's top padding so they never fight. Defined on
   the common parent so both .ug-hero and its sibling .hero can read it. */
#section-hero {
  --dash-overlap: clamp(40px, 12vw, 160px);
}

.ug-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 110px 1.5rem 0;
  isolation: isolate;
  margin-bottom: 0;
}
.ug-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}
.ug-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.35) 45%, rgba(15,23,42,0.7) 100%);
  z-index: -1;
}
.ug-hero__inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  padding-top: 2rem;
}
.ug-hero__copy {
  max-width: 780px;
}
.ug-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.ug-hero__title-accent {
  color: #fff;
}
.ug-hero__desc {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 2rem;
}
.ug-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.ug-hero__dashboard {
  position: relative;
  width: min(100%, 1040px);
  max-width: 100%;
  margin-top: auto;
  margin-bottom: calc(-1 * var(--dash-overlap));
  transform: translateY(0);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 12px 24px -8px rgba(15, 23, 42, 0.18),
    0 40px 80px -20px rgba(15, 23, 42, 0.35),
    0 80px 140px -40px rgba(37, 99, 235, 0.25);
  z-index: 50;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}
.ug-hero__dashboard:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.08),
    0 16px 32px -8px rgba(15, 23, 42, 0.2),
    0 50px 100px -20px rgba(15, 23, 42, 0.4),
    0 100px 160px -40px rgba(37, 99, 235, 0.3);
}
.ug-hero__dashboard img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ug-hero__dashboard {
  will-change: transform;
}

.ug-hero__dashboard img {
  display: block;
  width: 100%;
  height: auto;
}
.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 3px;
  font-weight: 600;
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn-register:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Hero typed effect */
#ug-hero-typed {
  color: var(--blue);
  font-weight: 600;
  border-right: 2px solid var(--blue);
  padding-right: 2px;
  visibility: hidden;
  animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { border-color: var(--blue); }
  50% { border-color: transparent; }
}

@media (max-width: 768px) {
  #ug-hero-typed {
    border-right-width: 1px;
  }
}

/* The dashboard overflows the ug-hero via negative margin. It sits in ug-hero's
   stacking context, so we raise ug-hero above .hero (which follows it in the DOM
   inside #section-hero) and reserve top padding on .hero so its content clears. */
.ug-hero { position: relative; z-index: 2; }
.hero {
  position: relative;
  z-index: 1;
  /* Always clears the dashboard overlap + breathing room, at any viewport. */
  padding-top: calc(var(--dash-overlap, 160px) + clamp(3rem, 6vw, 5rem));
}

@media (max-width: 768px) {
  .ug-hero { padding: 110px 1rem 0; min-height: auto; }
  .ug-hero__inner { gap: 1.5rem; }
  .ug-hero__dashboard { border-radius: 16px; }
  .ug-hero__dashboard:hover { transform: translateY(-4px); }
}

/* =========================================
   HERO ECOSYSTEM (SECONDARY HERO)
   ========================================= */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Clears the dashboard overlap + breathing room */
  padding-top: calc(var(--dash-overlap, 160px) + 2rem);
  padding-bottom: 40px;
  padding-left: 2rem;
  padding-right: 2rem;
  overflow: hidden;
  background: #fff;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 30% 70%, rgba(13, 148, 136, 0.03) 0%, transparent 50%);
  z-index: 0;
}

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

.ecosystem-features li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.ecosystem-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-pale);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ecosystem-text strong {
  display: block;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.ecosystem-text span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-content {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1.2rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
  margin-bottom: 1.2rem;
}
.hero-title-accent {
  color: var(--blue);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-scribble {
  opacity: .8;
}

/* ---- Module Diagram: Ring + Logo + Capsule ---- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.module-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}

/* Triangle connector between ring and capsule */
.diagram-connector {
  flex-shrink: 0;
  width: clamp(20px, 3vw, 36px);
  height: clamp(16px, 2vw, 24px);
  display: flex;
  align-items: center;
  animation: connector-pulse 2.4s ease-in-out infinite alternate;
}
.diagram-connector svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 4px rgba(37,99,235,0.3));
}
@keyframes connector-pulse {
  0%   { opacity: 0.45; transform: translateX(0); }
  100% { opacity: 0.8; transform: translateX(3px); }
}

@property --ring-c1 {
  syntax: '<color>';
  inherits: false;
  initial-value: #38CBFA;
}
@property --ring-c2 {
  syntax: '<color>';
  inherits: false;
  initial-value: #76D260;
}

/* Spinning ring — responsive sizing */
.diagram-ring {
  position: relative;
  width: clamp(180px, 22vw, 280px);
  height: clamp(180px, 22vw, 280px);
  border-radius: 50%;
  background: conic-gradient(
    var(--ring-c1) 0deg,
    var(--ring-c2) 90deg,
    var(--ring-c1) 180deg,
    var(--ring-c2) 270deg,
    var(--ring-c1) 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation:
    ring-spin 6s linear infinite,
    ring-pulse 2.4s ease-in-out infinite alternate,
    ring-color-shift 4s ease-in-out infinite alternate;
}

@keyframes ring-spin { to { transform: rotate(360deg); } }

@keyframes ring-pulse {
  0%   { box-shadow:
           0 0 0 0 rgba(56,203,250,0.35),
           0 0 24px 6px rgba(56,203,250,0.35),
           0 0 70px 16px rgba(118,210,96,0.25); }
  100% { box-shadow:
           0 0 0 8px rgba(56,203,250,0.08),
           0 0 46px 14px rgba(15,160,217,0.55),
           0 0 110px 30px rgba(118,210,96,0.35); }
}

@keyframes ring-color-shift {
  0%   { --ring-c1: #38CBFA; --ring-c2: #76D260; }
  50%  { --ring-c1: #0fa0d9; --ring-c2: #5aa54a; }
  100% { --ring-c1: #76D260; --ring-c2: #38CBFA; }
}

/* Center logo — responsive sizing */
.diagram-logo {
  width: clamp(80px, 10vw, 130px);
  height: clamp(80px, 10vw, 130px);
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-shadow:
    0 10px 32px rgba(15,23,42,0.14),
    inset 0 0 0 1px rgba(15,23,42,0.04);
  animation: counter-spin 6s linear infinite, logo-breathe 3.6s ease-in-out infinite alternate;
  flex-shrink: 0;
}

.diagram-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes counter-spin { to { transform: rotate(-360deg); } }

@keyframes logo-breathe {
  0%   { filter: drop-shadow(0 0 0 rgba(37,99,235,0)); }
  100% { filter: drop-shadow(0 0 12px rgba(37,99,235,0.35)); }
}

/* Capsule: glassy module pill that cycles items with a subtle inner motion */
.module-capsule {
  position: relative;
  width: clamp(190px, 16vw, 230px);
  height: clamp(62px, 5.5vw, 76px);
  background:
    linear-gradient(140deg, rgba(255,255,255,0.94) 0%, rgba(244,250,255,0.88) 100%);
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 14px 34px -10px rgba(15, 23, 42, 0.18),
    0 6px 14px -6px rgba(37, 99, 235, 0.18);
  overflow: hidden;
  flex-shrink: 0;
  isolation: isolate;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  will-change: transform;
  animation: capsule-float 4.2s ease-in-out infinite;
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

/* Animated gradient ring around the capsule */
.module-capsule::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background:
    conic-gradient(from 0deg,
      rgba(56, 203, 250, 0.55),
      rgba(118, 210, 96, 0.55),
      rgba(37, 99, 235, 0.55),
      rgba(56, 203, 250, 0.55));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.55;
  animation: capsule-ring 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Soft inner highlight, separate from gradient ring */
.module-capsule::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(56,203,250,0.10), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(118,210,96,0.10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.module-capsule:hover {
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 22px 40px -10px rgba(15, 23, 42, 0.24),
    0 10px 22px -6px rgba(37, 99, 235, 0.28);
}

@keyframes capsule-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes capsule-ring {
  to { transform: rotate(360deg); }
}

/* One module item shown at a time — text only, centered */
.module-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 1.1rem;
  text-align: center;
  color: var(--navy);
  opacity: 0;
  transform: translateY(10px);
  animation: module-reveal 18s ease-in-out infinite;
  animation-delay: calc(var(--i) * 3s);
  z-index: 1;
}

.module-item__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.module-item__text strong {
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(90deg, #1d4ed8, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.module-item__text small {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes module-reveal {
  0%    { opacity: 0; transform: translateY(10px); filter: blur(2px); }
  4%    { opacity: 1; transform: translateY(0);    filter: blur(0); }
  14%   { opacity: 1; transform: translateY(0);    filter: blur(0); }
  17%   { opacity: 0; transform: translateY(-8px); filter: blur(2px); }
  100%  { opacity: 0; transform: translateY(10px); filter: blur(2px); }
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
}

/* Hero typed effect — the span is sized to the LONGEST phrase so nothing
   reflows as the text rotates. The caret is rendered via ::after so it sits
   immediately after the typed characters instead of at the right edge of the
   reserved box. `overflow: visible` keeps the inline-block's baseline aligned
   with the surrounding heading text. */
#hero-ecosystem-typed {
  color: var(--blue);
  font-weight: 700;
  visibility: hidden;
  display: inline-block;
  width: 16ch;        /* enough for "Strategic Center" */
  min-width: 16ch;
  box-sizing: content-box;
  text-align: left;
  vertical-align: baseline;
  line-height: inherit;
  white-space: nowrap;
  overflow: visible;
}

#hero-ecosystem-typed::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  color: var(--blue);
  font-weight: 400;
  animation: caret-blink 0.75s step-end infinite;
  transform: translateY(-1px);
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@media (max-width: 768px) {
  #hero-ecosystem-typed {
    width: 14ch;
    min-width: 14ch;
  }
}
@media (max-width: 480px) {
  #hero-ecosystem-typed {
    width: 12ch;
    min-width: 12ch;
  }
}

.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--text-light);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--blue);
  border-radius: 3px;
  animation: scroll-wheel 2s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(8px); opacity: .4; }
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-5px); }
}

/* =========================================
   BENEFITS SECTION
   ========================================= */
.benefits {
  position: relative;
  padding: 40px 2rem;
  overflow: hidden;
  background-color: var(--bg);
}
.benefits::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232563eb' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='50' cy='50' r='10'/%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
  pointer-events: none;
}
.benefits-inner {
  position: relative;
  z-index: 2;
}

.benefits-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.blob-blue {
  width: 280px; height: 280px;
  background: var(--blue);
  top: 60px; right: -60px;
  opacity: .12;
  filter: blur(40px);
}
.blob-dots {
  width: 200px; height: 200px;
  bottom: 40px; left: 40px;
  background: radial-gradient(circle, #2563eb 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .15;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.04), 0 1px 3px -1px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 1;
}
.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 18px -6px rgba(0, 0, 0, 0.08), 0 6px 8px -6px rgba(0, 0, 0, 0.03);
  border-color: rgba(37,99,235,0.3);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--blue-pale);
  display: grid;
  place-items: center;
  color: var(--blue);
  margin-bottom: 1.2rem;
}

.benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .75rem;
}
.benefit-card p {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features {
  padding: 40px 0;
  position: relative;
  background-color: var(--surface);
}

.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
  margin-bottom: 8rem;
  padding: 0 2rem;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row-reverse { direction: rtl; }
.feature-row-reverse > * { direction: ltr; }

.feature-tag {
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .6rem;
}
.feature-title {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.feature-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-muted);
}
.feature-list li::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Mockup windows ---- */
.feature-mockup {
  position: relative;
}
.mockup-blob {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--blue-pale);
  top: 50%; right: -40px;
  transform: translateY(-50%);
  z-index: 0;
  opacity: .7;
}
.mockup-blob.left { right: auto; left: -40px; }

.mockup-window {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.mockup-window:hover {
  transform: perspective(800px) rotateY(-1deg) rotateX(0deg);
  box-shadow: 0 12px 36px rgba(37,99,235,.12);
}
.feature-row-reverse .mockup-window {
  transform: perspective(800px) rotateY(4deg) rotateX(2deg);
}
.feature-row-reverse .mockup-window:hover {
  transform: perspective(800px) rotateY(1deg) rotateX(0deg);
}

.mockup-bar {
  background: #f1f5f9;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.mockup-bar.green-bar { background: #e8f5e9; }

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }

.mockup-bar-title {
  font-size: .7rem;
  color: var(--text-light);
  margin-left: 4px;
  font-weight: 500;
}

.mockup-body {
  padding: 14px;
  min-height: 240px;
}
.mockup-body--image {
  padding: 0;
  min-height: 0;
  background: var(--bg);
}
.mockup-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Capabilities Grid & Cards ---- */
.capabilities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
  align-items: stretch;
}

.capability-card {
  flex: 0 1 calc(33.333% - 1.34rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.capability-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 400px at 10% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
              radial-gradient(900px 380px at 90% 20%, rgba(13, 148, 136, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.capability-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.capability-card:hover,
.capability-card:focus-within {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.07);
  border-color: rgba(37, 99, 235, 0.35);
}

.capability-card:hover::before,
.capability-card:focus-within::before {
  opacity: 1;
}

.capability-card:hover::after,
.capability-card:focus-within::after {
  opacity: 1;
}

.capability-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.capability-image-box {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.capability-image-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 20%, rgba(15, 23, 42, 0.12) 100%);
  pointer-events: none;
}

.capability-image-box::before {
  content: '';
  position: absolute;
  left: -40%;
  top: -60%;
  width: 60%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(18deg) translateX(-40%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.capability-card:hover .capability-image-box::before,
.capability-card:focus-within .capability-image-box::before {
  transform: rotate(18deg) translateX(160%);
  opacity: 1;
}

.capability-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.capability-card:hover .capability-img,
.capability-card:focus-within .capability-img {
  transform: scale(1.1);
}

.capability-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--surface);
  z-index: 2;
}

.capability-content::after {
  content: 'View details';
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  background: rgba(248, 250, 252, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.capability-card:hover .capability-content::after,
.capability-card:focus-within .capability-content::after {
  opacity: 0;
  transform: translateY(-2px);
}

.capability-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  align-self: flex-start;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.capability-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.capability-card:hover .capability-title,
.capability-card:focus-within .capability-title {
  color: var(--blue-dark);
}

.capability-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 120px;
}

.capability-card:hover .capability-desc,
.capability-card:focus-within .capability-desc {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
}

.capability-popup {
  position: relative;
  background: transparent;
  padding: 1rem 0 0;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 0;
  overflow: hidden;
}

.capability-card:hover .capability-popup,
.capability-card:focus-within .capability-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 520px;
}

.capability-card:hover .capability-list li,
.capability-card:focus-within .capability-list li {
  opacity: 1;
  transform: translateX(0);
}

.capability-list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.capability-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.capability-card:hover .capability-list li,
.capability-card:focus-within .capability-list li {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered animation for bullets */
.capability-card:hover .capability-list li:nth-child(1) { transition-delay: 0.1s; }
.capability-card:hover .capability-list li:nth-child(2) { transition-delay: 0.15s; }
.capability-card:hover .capability-list li:nth-child(3) { transition-delay: 0.2s; }
.capability-card:hover .capability-list li:nth-child(4) { transition-delay: 0.25s; }

.capability-card:focus-within .capability-list li:nth-child(1) { transition-delay: 0.06s; }
.capability-card:focus-within .capability-list li:nth-child(2) { transition-delay: 0.1s; }
.capability-card:focus-within .capability-list li:nth-child(3) { transition-delay: 0.14s; }
.capability-card:focus-within .capability-list li:nth-child(4) { transition-delay: 0.18s; }

.capability-list li::before {
  content: '';
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.8), rgba(37, 99, 235, 0.9));
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.capability-footer {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
  display: none;
}

@media (hover: none) {
  .capability-popup {
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: none;
    overflow: visible;
  }
  .capability-list li {
    opacity: 1;
    transform: none;
  }
  .capability-content::after {
    display: none;
  }
  .capability-desc {
    opacity: 1;
    transform: none;
    max-height: none;
  }
}

@media (max-width: 1024px) {
  .capability-card {
    flex: 0 1 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .capability-card {
    flex: 0 1 100%;
  }
  .capabilities-grid {
    padding: 0 1.5rem;
  }
  .capability-card {
    min-height: auto;
  }
  .capability-list li {
    opacity: 1;
    transform: none;
  }
  .capability-content::after {
    display: none;
  }
}


/* Mock table elements */
.mock-toolbar { margin-bottom: 10px; }
.mock-btn-row { display: flex; align-items: center; gap: 6px; }
.mock-btn {
  height: 22px; border-radius: 6px;
}
.mock-btn.blue { background: var(--blue); width: 60px; }
.mock-btn.outline { border: 1px solid var(--border); background: transparent; width: 50px; }
.mock-btn.sm { height: 18px; }
.mock-spacer { flex: 1; }
.mock-search {
  width: 100px; height: 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

.mock-table { font-size: .7rem; width: 100%; }
.mock-thead {
  display: flex;
  background: #f8fafc;
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 2px;
}
.mock-thead.sm-head { padding: 4px 6px; }
.mock-th {
  color: var(--text-light);
  font-weight: 600;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.mock-tr {
  display: flex;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background .2s;
}
.mock-tr.highlight { background: #eff6ff; }
.mock-tr:hover { background: #f8fafc; }
.mock-td { display: flex; align-items: center; }

.w10 { width: 10%; }
.w15 { width: 15%; }
.w20 { width: 20%; }
.w30 { width: 30%; }
.w35 { width: 35%; }

.bar {
  height: 7px;
  background: #e2e8f0;
  border-radius: 4px;
  flex-shrink: 0;
}
.bar.w40 { width: 40%; }
.bar.w45 { width: 45%; }
.bar.w50 { width: 50%; }
.bar.w55 { width: 55%; }
.bar.w60 { width: 60%; }
.bar.w65 { width: 65%; }
.bar.w70 { width: 70%; }
.bar.w75 { width: 75%; }
.bar.w80 { width: 80%; }
.bar.w85 { width: 85%; }
.bar.mt4 { margin-top: 4px; }
.bar.lighter { background: #f1f5f9; }

.status-badge {
  width: 24px; height: 7px;
  border-radius: 4px;
}
.status-badge.green  { background: #bbf7d0; }
.status-badge.blue   { background: var(--blue-pale); }
.status-badge.orange { background: #fde68a; }

/* Voucher mock */
.voucher-body { padding: 12px; }
.voucher-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.voucher-agency { flex: 1; }
.qr-placeholder {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.qr-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; width: 100%; }
.qr-block { background: var(--navy); border-radius: 1px; aspect-ratio: 1; }
.qr-block.light { background: #e2e8f0; }

.voucher-divider { height: 1px; background: var(--border); margin: 8px 0; }
.voucher-rows { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.voucher-row { display: flex; justify-content: space-between; align-items: center; }
.voucher-total { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); margin-bottom: 8px; }
.amount-box { width: 50px; height: 10px; background: #dbeafe; border-radius: 4px; }
.voucher-sigs { display: flex; justify-content: space-between; gap: 1rem; }
.sig-block { flex: 1; }

/* Kanban mock */
.kanban-body { padding: 10px; }
.kanban-cols { display: flex; gap: 6px; margin-bottom: 8px; }
.kanban-col { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.kanban-col-header {
  height: 20px; border-radius: 6px;
  font-size: .6rem; color: #fff;
  display: flex; align-items: center; padding: 0 6px;
}
.blue-header   { background: #3b82f6; }
.orange-header { background: #f59e0b; }
.purple-header { background: #8b5cf6; }
.green-header  { background: #16a34a; }
.red-header    { background: #ef4444; }

.kanban-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 38px;
}
.kanban-card.sm { height: 28px; }

.kanban-legend { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.legend-item { width: 28px; height: 28px; border-radius: 6px; }
.blue-sq   { background: #3b82f6; }
.purple-sq { background: #8b5cf6; }
.donut {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: conic-gradient(#3b82f6 0deg 120deg, #f59e0b 120deg 220deg, #ef4444 220deg 360deg);
}
.legend-bars { flex: 1; }

/* Report mock */
.report-body { padding: 10px; }
.report-charts-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-end; }
.report-bar-chart { flex: 1; }
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 70px;
}
.chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  min-width: 12px;
}
.report-pies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.pie-chart {
  width: 36px; height: 36px;
  border-radius: 50%;
}
.p1 { background: conic-gradient(#2563eb 0 130deg, #e2e8f0 130deg); }
.p2 { background: conic-gradient(#f59e0b 0 200deg, #e2e8f0 200deg); }
.p3 { background: conic-gradient(#16a34a 0 90deg, #e2e8f0 90deg); }
.p4 { background: conic-gradient(#e63946 0 160deg, #e2e8f0 160deg); }

.dark-pies .dp1 { background: conic-gradient(#1e3a6e 0 130deg, #2563eb 130deg 250deg, #e2e8f0 250deg); }
.dark-pies .dp2 { background: conic-gradient(#1e3a6e 0 200deg, #e2e8f0 200deg); }
.dark-pies .dp3 { background: conic-gradient(#2563eb 0 90deg, #1e3a6e 90deg 260deg, #e2e8f0 260deg); }
.dark-pies .dp4 { background: conic-gradient(#1e3a6e 0 160deg, #2563eb 160deg 300deg, #e2e8f0 300deg); }

/* Dashboard mock */
.dashboard-body { padding: 10px; }
.dash-kpi-row { display: flex; gap: 6px; margin-bottom: 10px; }
.dash-kpi {
  flex: 1;
  border-radius: 8px;
  padding: 8px 8px 6px;
  min-height: 44px;
}
.blue-kpi  { background: #dbeafe; }
.teal-kpi  { background: #ccfbf1; }
.red-kpi   { background: #fee2e2; }
.green-kpi { background: #dcfce7; }
.kpi-val {
  height: 10px;
  background: rgba(0,0,0,.12);
  border-radius: 4px;
  width: 55%;
  margin-bottom: 5px;
}
.kpi-lbl {
  height: 6px;
  background: rgba(0,0,0,.08);
  border-radius: 3px;
  width: 70%;
}

.dash-charts-row { display: flex; gap: 8px; margin-bottom: 8px; }
.dash-bar-area { flex: 2; }
.dash-chart-bars { display: flex; gap: 6px; align-items: flex-end; height: 60px; }
.dash-bar-group { display: flex; gap: 2px; align-items: flex-end; flex: 1; }
.dash-bar { flex: 1; border-radius: 2px 2px 0 0; min-width: 8px; }

.dash-pies-col { flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.dash-donut {
  width: 40px; height: 40px;
  border-radius: 50%;
}
.d1 { background: conic-gradient(#2563eb 0 200deg, #e2e8f0 200deg); }
.d2 { background: conic-gradient(#f59e0b 0 150deg, #e2e8f0 150deg); }

.dash-pies-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.big-donut {
  width: 50px; height: 50px;
  border-radius: 50%;
  position: relative;
}
.big-donut::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 26px; height: 26px;
  background: #fff;
  border-radius: 50%;
}
.bd1 { background: conic-gradient(#1e3a6e 0 160deg, #2563eb 160deg 280deg, #93c5fd 280deg); }
.bd2 { background: conic-gradient(#f59e0b 0 200deg, #fde68a 200deg 300deg, #e2e8f0 300deg); }
.bd3 { background: conic-gradient(#7c3aed 0 130deg, #a78bfa 130deg 250deg, #e2e8f0 250deg); }
.bd4 { background: conic-gradient(#16a34a 0 180deg, #86efac 180deg 300deg, #e2e8f0 300deg); }

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
  position: relative;
  padding: 40px 2rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff 0%, #f7f9ff 100%);
}

.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Cpath d='M40 40c0-11.046 8.954-20 20-20v40H20c0-11.046 8.954-20 20-20zM0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
  pointer-events: none;
}

.contact-form {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { margin-bottom: 1.5rem; }

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .9rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }

.form-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
  padding: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  font-size: .9rem;
  color: var(--green);
  font-weight: 500;
}
.form-success.show { display: flex; }

.contact-blob-1 {
  position: absolute;
  width: 300px; height: 300px;
  background: var(--blue);
  border-radius: 50%;
  top: -80px; right: -80px;
  opacity: .06;
  filter: blur(60px);
  pointer-events: none;
}
.contact-blob-2 {
  position: absolute;
  width: 200px; height: 200px;
  background: var(--teal);
  border-radius: 50%;
  bottom: 40px; left: -60px;
  opacity: .06;
  filter: blur(50px);
  pointer-events: none;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 60px 2rem 0;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .logo-text { color: #fff; font-size: 1.2rem; }
.footer-brand .logo-dot  { background: var(--blue-light); }
.footer-brand p {
  margin-top: 1rem;
  font-size: .85rem;
  line-height: 1.7;
  color: #64748b;
  max-width: 280px;
}
.footer-links h4 {
  font-family: 'Sora', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-links a {
  font-size: .85rem;
  color: #64748b;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--blue-light); }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.25rem 0;
  max-width: 1180px;
  margin: 0 auto;
}
.footer-bottom p {
  font-size: .8rem;
  color: #475569;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .step-grid { justify-content: center; }
  .step-card { flex: 0 1 calc(50% - 1rem); }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr 1fr; }
  .contact-container { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-content  { gap: 2.5rem; }
  .module-diagram { gap: 0; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    padding: 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
  }
  .nav-links.open + .nav-cta { display: block; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-scribble { display: none; }
  .module-diagram { flex-direction: column; }
  .diagram-connector {
    transform: rotate(90deg);
    width: clamp(16px, 3vw, 24px);
    height: clamp(14px, 2vw, 20px);
  }
  .module-item__text strong { font-size: 1.15rem; }
  .module-item__text small { font-size: .78rem; }

  .benefits-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .step-grid { flex-direction: column; }
  .step-card { flex: 0 1 100%; }
  .usp-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-container { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 90px 1.2rem 60px; }
  .benefits { padding: 60px 1.2rem; }
  .contact { padding: 60px 1.2rem; }
  .contact-form { padding: 1.5rem; }
  .footer { padding: 40px 1.2rem 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .module-item { padding: 0.85rem; }
  .module-item__text strong { font-size: 1.05rem; }
  .module-item__text small { font-size: .72rem; }
}

/* =========================================
   ENHANCED ANIMATIONS & MICRO-INTERACTIONS
   ========================================= */

/* Smoother, richer reveal curve */
.reveal, .reveal-right, .benefit-card, .step-card, .usp-card, .faq-card {
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  filter: blur(4px);
}
.reveal.visible, .reveal-right.visible,
.benefit-card.visible, .step-card.visible,
.usp-card.visible, .faq-card.visible {
  filter: blur(0);
}

/* Primary button — shimmer sweep on hover */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255,255,255,0.35) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover svg,
.btn-primary:focus-visible svg { transform: translateX(4px); }
.btn-primary svg { transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }

/* Ghost/register buttons — subtle lift + border glow */
.btn-ghost, .btn-register {
  position: relative;
  overflow: hidden;
}
.btn-ghost::after, .btn-register::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-ghost:hover::after, .btn-register:hover::after { width: 70%; }

/* Nav link underline — animate from center */
.nav-links a::after {
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Cards — gradient edge glow on hover */
.feature-card, .step-card, .usp-card, .benefit-card, .faq-card {
  position: relative;
}
.feature-card::after,
.step-card::after,
.usp-card::after,
.benefit-card::after,
.faq-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37,99,235,0.6), rgba(13,148,136,0.4), rgba(96,165,250,0.6));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 2;
}
.feature-card:hover::after,
.step-card:hover::after,
.usp-card:hover::after,
.benefit-card:hover::after,
.faq-card:hover::after { opacity: 1; }

/* Feature/step/benefit icons — playful hover pop */
.feature-icon, .step-icon, .benefit-icon {
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}
.feature-card:hover .feature-icon,
.step-card:hover .step-icon,
.benefit-card:hover .benefit-icon {
  transform: scale(1.12);
  background: linear-gradient(135deg, var(--blue-pale), rgba(37, 99, 235, 0.12));
  color: var(--blue);
  box-shadow: 0 8px 20px -4px rgba(37,99,235,0.35);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Card titles — color nudge on hover */
.feature-card h3, .step-card h3, .usp-card h3, .benefit-card h3, .faq-card h3 {
  transition: color 0.3s ease, transform 0.3s ease;
}
.feature-card:hover h3,
.step-card:hover h3,
.usp-card:hover h3,
.benefit-card:hover h3,
.faq-card:hover h3 {
  color: var(--blue);
}

/* Form inputs — refined focus ring */
.form-group input,
.form-group textarea {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 4px rgba(37,99,235,0.14), 0 4px 14px -4px rgba(37,99,235,0.25);
  background: #fff;
  transform: translateY(-1px);
}

/* Secondary CTA — subtle animated gradient */
.secondary-cta-inner {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 50%, var(--teal) 100%);
  background-size: 220% 220%;
  animation: cta-shift 9s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
@keyframes cta-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Mockup windows — smoother 3D tilt */
.mockup-window {
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Logo dot — gentle pulse */
.logo-dot {
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(37,99,235,0); }
}

/* Scroll hint — pointer cue */
.scroll-hint { cursor: pointer; transition: opacity 0.3s ease; }
.scroll-hint:hover { opacity: 0.75; }

/* Hero title accent — clean, no underline */
.hero-title-accent::after {
  display: none;
}

/* UG hero dashboard — subtle parallax idle float */
.ug-hero__dashboard {
  animation: dash-float 7s ease-in-out infinite;
}
@keyframes dash-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.ug-hero__dashboard:hover { animation-play-state: paused; }

/* FAQ card — slight arrow affordance on hover */
.faq-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-card h3::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  transform: scale(0.6);
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.faq-card:hover h3::before {
  transform: scale(1.1);
  opacity: 1;
  background: var(--teal);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================
   UG · BENEFITS — BENTO GRID
   ========================================= */
.ug-benefits { padding: 80px 2rem; }
.ug-bento-header {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}
.ug-bento-header h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.ug-bento-header p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.ug-bento {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: repeat(3, minmax(150px, 1fr));
  gap: 1.25rem;
  position: relative;
  z-index: 2;
}
.ug-bento__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s ease, border-color 0.3s ease;
  box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.04), 0 1px 3px -1px rgba(0, 0, 0, 0.02);
}
.ug-bento__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 24px -8px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
}

.ug-bento__card--feature {
  grid-column: 1;
  grid-row: 1 / -1;
  padding: 2.5rem 2.25rem;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  border-color: rgba(255, 255, 255, 0.1);
}

.ug-bento__card-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.ug-bento__card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.ug-bento__card:hover .ug-bento__card-visual img {
  transform: scale(1.08);
}
.ug-bento__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.65) 50%, rgba(15, 23, 42, 0.35) 100%);
  z-index: 1;
}
.ug-bento__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.ug-bento__card--a { grid-column: 2; grid-row: 1; }
.ug-bento__card--b { grid-column: 2; grid-row: 2; }
.ug-bento__card--c { grid-column: 2; grid-row: 3; }

.ug-bento__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ug-bento__stat strong {
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
}
.ug-bento__card--feature .ug-bento__stat strong {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.ug-bento__stat strong span {
  color: var(--blue);
  font-size: 0.6em;
  margin-left: 0.1em;
}
.ug-bento__card--feature .ug-bento__stat strong span {
  color: var(--blue-light);
}
.ug-bento__stat small {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 320px;
}
.ug-bento__card--feature .ug-bento__stat small {
  color: rgba(255, 255, 255, 0.7);
}
.ug-bento__card--feature h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.ug-bento__card--feature p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.7;
}
.ug-bento__points {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
}
.ug-bento__points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 500;
}
.ug-bento__card--feature .ug-bento__points li {
  color: #ffffff;
}
.ug-bento__points li svg {
  flex-shrink: 0;
  color: var(--blue);
}
.ug-bento__glow {
  position: absolute;
  inset: auto -30% -40% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.ug-bento__card--a .ug-bento__icon,
.ug-bento__card--b .ug-bento__icon,
.ug-bento__card--c .ug-bento__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-pale);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}
.ug-bento__card--a h3,
.ug-bento__card--b h3,
.ug-bento__card--c h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.ug-bento__card--a p,
.ug-bento__card--b p,
.ug-bento__card--c p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .ug-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .ug-bento__card--feature {
    grid-column: 1;
    grid-row: auto;
  }
  .ug-bento__card--a,
  .ug-bento__card--b,
  .ug-bento__card--c {
    grid-column: 1;
    grid-row: auto;
  }
}

/* =========================================
   UG · CAPABILITIES — TABBED INTERFACE
   ========================================= */
.ug-features { padding: 90px 0; }
.ug-tabs-header {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}
.ug-tabs-header h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.ug-tabs-header p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.ug-tabs {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}
.ug-tabs__rail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: start;
  position: sticky;
  top: 100px;
}
.ug-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  font: inherit;
  color: var(--text-muted);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.ug-tab:hover {
  background: rgba(37, 99, 235, 0.04);
  color: var(--navy);
}
.ug-tab.is-active {
  background: var(--surface);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--navy);
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.12);
}
.ug-tab__num {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}
.ug-tab.is-active .ug-tab__num { color: var(--blue); }
.ug-tab__label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.ug-tab__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: inherit;
  line-height: 1.25;
}
.ug-tab__sub {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}
.ug-tab__chev {
  color: var(--text-light);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.ug-tab.is-active .ug-tab__chev,
.ug-tab:hover .ug-tab__chev {
  opacity: 1;
  transform: translateX(0);
  color: var(--blue);
}

.ug-tabs__panels {
  position: relative;
  min-height: 460px;
}
.ug-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.12);
}
.ug-panel.is-active {
  display: grid;
  animation: ug-panel-fade 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes ug-panel-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ug-panel__visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.ug-panel__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 60%, rgba(15, 23, 42, 0.12) 100%);
  pointer-events: none;
}
.ug-panel__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ug-panel__body {
  padding: 1.75rem 2rem 2rem;
}
.ug-panel__body h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  line-height: 1.2;
}
.ug-panel__body p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 1.4rem;
}

.ug-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ug-checklist li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
}
.ug-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--blue-pale);
}
.ug-checklist li::after {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

@media (max-width: 880px) {
  .ug-tabs {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ug-tabs__rail {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 0.4rem;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
  }
  .ug-tab {
    flex: 0 0 auto;
    grid-template-columns: auto auto;
    padding: 0.65rem 0.9rem;
    gap: 0.55rem;
  }
  .ug-tab__sub,
  .ug-tab__chev { display: none; }
  .ug-tab__title { font-size: 0.88rem; }
  .ug-tabs__panels { min-height: 0; }
}

/* =========================================
   UG · IMPLEMENTATION — HORIZONTAL STEPPER
   ========================================= */
.ug-impl { padding: 90px 0; }
.ug-impl-header {
  max-width: 760px;
  margin: 0 auto 4rem;
  text-align: center;
}
.ug-impl-header h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.ug-impl-header p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.ug-stepper {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.ug-stepper::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10% + 28px);
  right: calc(10% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue), rgba(37, 99, 235, 0.25));
  z-index: 0;
}
.ug-stepper__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.75rem;
}
.ug-stepper__node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--blue);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--blue);
  font-size: 0.95rem;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.08), 0 8px 18px -6px rgba(15, 23, 42, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  margin-bottom: 1.25rem;
}
.ug-stepper__item:hover .ug-stepper__node {
  transform: scale(1.08);
  background: var(--blue);
  color: white;
  box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.14), 0 10px 22px -6px rgba(15, 23, 42, 0.2);
}
.ug-stepper__node--final {
  background: var(--blue);
  color: white;
}
.ug-stepper__body h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.ug-stepper__body p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .ug-stepper {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 540px;
  }
  .ug-stepper::before {
    top: 28px;
    bottom: 28px;
    left: 28px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--blue), rgba(37, 99, 235, 0.25));
  }
  .ug-stepper__item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1.25rem;
    padding: 0;
  }
  .ug-stepper__node {
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .ug-stepper__body { padding-top: 0.5rem; }
}

/* =========================================
   UG · ADVANTAGE — SPLIT LEAD + GRID + STATS
   ========================================= */
.ug-advantage { padding: 90px 2rem; }
.ug-adv-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.ug-adv-lead h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.ug-adv-lead h2 em {
  font-style: italic;
  color: var(--text-muted);
  font-weight: 600;
}
.ug-adv-lead p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 460px;
}
.ug-adv-cta { display: inline-flex; }

.ug-adv-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ug-adv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s ease, border-color 0.3s ease;
  box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.04), 0 1px 3px -1px rgba(0, 0, 0, 0.02);
}
.ug-adv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 24px -8px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
}
.ug-adv-card:nth-child(odd) { transform: translateY(1.5rem); }
.ug-adv-card:nth-child(odd):hover { transform: translateY(calc(1.5rem - 6px)); }
.ug-adv-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-pale);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}
.ug-adv-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.45rem;
}
.ug-adv-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.ug-adv-stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.06);
  position: relative;
  z-index: 2;
}
.ug-adv-stat {
  padding: 1.75rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.ug-adv-stat:last-child { border-right: none; }
.ug-adv-stat strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.ug-adv-stat strong span {
  color: var(--blue);
  font-size: 0.7em;
  font-weight: 700;
}
.ug-adv-stat small {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ug-adv-banner {
  margin-top: 3rem;
  padding: 2.5rem 2.5rem;
  border-radius: var(--radius-lg);
  background: #17C2C2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  box-shadow: 0 18px 40px -18px rgba(23, 194, 194, 0.5);
}
.ug-adv-banner h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: white;
}
.ug-adv-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 0.95rem;
}
.ug-adv-banner__btn {
  background: white !important;
  color: #17C2C2 !important;
  border: none !important;
}

@media (max-width: 960px) {
  .ug-adv-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .ug-adv-card:nth-child(odd) { transform: none; }
  .ug-adv-card:nth-child(odd):hover { transform: translateY(-6px); }
}
@media (max-width: 720px) {
  .ug-adv-cards { grid-template-columns: 1fr; }
  .ug-adv-stats { grid-template-columns: repeat(2, 1fr); }
  .ug-adv-stat { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .ug-adv-stat:nth-child(2n) { border-right: none; }
  .ug-adv-stat:nth-last-child(-n+2) { border-bottom: none; }
  .ug-adv-banner { padding: 2rem 1.5rem; }
}

/* =========================================
   UG · INTEGRATION — MODULE CATALOG GRID
   ========================================= */
.ug-integration {
  padding: 90px 2rem;
  position: relative;
  overflow: hidden;
}

.ug-int-header {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
.ug-int-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.ug-int-header h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.ug-int-header p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.ug-int-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* 7 cards, 4-col layout: row 1 = 4 cards, row 2 = 2 normal + 1 wider feature */
.ug-int-card:nth-child(7) {
  grid-column: 3 / span 2;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 60%, #eff6ff 100%);
}
.ug-int-card:nth-child(7) .ug-int-card__icon {
  background: var(--blue);
  color: #fff;
}

.ug-int-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s ease, border-color 0.3s ease;
  box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.04), 0 1px 3px -1px rgba(0, 0, 0, 0.02);
}
.ug-int-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s ease;
}
.ug-int-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px -12px rgba(15, 23, 42, 0.14);
  border-color: rgba(37, 99, 235, 0.35);
}
.ug-int-card:hover::before { transform: scaleX(1); }

.ug-int-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-pale);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.ug-int-card:hover .ug-int-card__icon {
  background: var(--blue);
  color: #fff;
  transform: rotate(-4deg) scale(1.05);
}

.ug-int-card__product {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ug-int-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.ug-int-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 1100px) {
  .ug-int-grid { grid-template-columns: repeat(3, 1fr); }
  .ug-int-card:nth-child(7) { grid-column: 1 / span 3; }
}
@media (max-width: 780px) {
  .ug-int-grid { grid-template-columns: repeat(2, 1fr); }
  .ug-int-card:nth-child(7) { grid-column: 1 / span 2; }
}
@media (max-width: 520px) {
  .ug-integration { padding: 70px 1.25rem; }
  .ug-int-grid { grid-template-columns: 1fr; }
  .ug-int-card:nth-child(7) { grid-column: auto; }
}

/* =========================================
   GLOBAL MOBILE RESPONSIVE — UlapGov
   Final pass to ensure every section breathes
   on phones and tablets.
   ========================================= */

/* Lock scroll while the mobile nav is open */
body.nav-locked { overflow: hidden; }

/* Larger, easier-to-tap interactive elements on touch devices */
@media (hover: none) and (pointer: coarse) {
  .navbar__btn,
  .btn-primary,
  .btn-register,
  .btn-ghost { min-height: 44px; }
  .ug-tab { min-height: 44px; }
}

/* ---- Tablet (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .ug-hero { padding: 100px 1.5rem 0; min-height: auto; }
  .ug-hero__title { font-size: clamp(1.85rem, 4.2vw, 2.8rem); }
  .ug-hero__desc  { font-size: 1rem; }

  .hero-content { grid-template-columns: 1fr; gap: 3rem; text-align: left; }
  .hero-visual  { justify-content: center; }
  .hero-desc    { max-width: 640px; }
  .hero-actions { justify-content: flex-start; }

  .section-inner { padding: 0 1.5rem; }
  .ug-features   { padding: 70px 0; }
  .ug-impl       { padding: 70px 0; }
  .ug-advantage  { padding: 70px 1.5rem; }
  .ug-benefits   { padding: 70px 1.5rem; }
  .ug-integration { padding: 70px 1.5rem; }

  .ug-adv-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ug-adv-lead p { max-width: 720px; }
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
  /* Module diagram stacks; capsule shrinks proportionally */
  .module-diagram { flex-direction: column; gap: 0.75rem; }
  .diagram-connector {
    transform: rotate(90deg);
    width: clamp(18px, 4vw, 26px);
    height: clamp(14px, 3vw, 20px);
  }
  .module-capsule {
    width: clamp(220px, 80vw, 280px);
    height: clamp(72px, 18vw, 88px);
  }
  .module-item { padding: 0 1rem; }
  .module-item__text strong { font-size: 1.05rem; }
  .module-item__text small  { font-size: 0.78rem; }

  /* Hero ecosystem: center-align stacked layout, give title room */
  .hero-content { gap: 2.25rem; }
  .hero-title   { font-size: clamp(1.7rem, 6vw, 2.25rem); }
  .hero-badge   { font-size: 0.72rem; }

  /* Reduce side padding on tight screens */
  .hero,
  .ug-features,
  .ug-impl,
  .ug-advantage,
  .ug-benefits,
  .ug-integration,
  .features,
  .benefits,
  .contact { padding-left: 1.25rem; padding-right: 1.25rem; }

  .section-inner { padding: 0 1.25rem; }

  /* USP stack tightens */
  .ug-adv-banner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1.75rem 1.5rem;
    gap: 1.25rem;
  }
  .ug-adv-banner__btn { width: 100%; justify-content: center; }
  .ug-adv-stats { grid-template-columns: repeat(2, 1fr); }
  .ug-adv-stat  { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .ug-adv-stat:nth-child(2n) { border-right: none; }
  .ug-adv-stat:nth-last-child(-n+2) { border-bottom: none; }

  /* Footer: 2 columns then brand on top */
  .footer { padding: 50px 1.25rem 0; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
    padding-bottom: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    text-align: left;
  }

  /* Integration tweaks */
  .ug-int-header h2 { font-size: clamp(1.55rem, 5.5vw, 2rem); }
  .ug-int-card { padding: 1.4rem 1.25rem; }
}

/* ---- Small phones (≤ 480px) ---- */
@media (max-width: 480px) {
  .ug-hero { padding: 90px 1rem 0; }
  .ug-hero__title { font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 1.2; }
  .ug-hero__desc  { font-size: 0.95rem; line-height: 1.65; }
  .ug-hero__actions { width: 100%; }
  .ug-hero__actions .btn-primary,
  .ug-hero__actions .btn-register {
    flex: 1 1 100%;
    justify-content: center;
    min-width: 0;
  }
  .ug-hero__dashboard { border-radius: 12px; }

  /* Hero ecosystem cleanup */
  .hero-content { gap: 2rem; }
  .hero-badge { padding: 4px 11px; }
  .ecosystem-features { gap: 1rem; }
  .ecosystem-features li { gap: 0.85rem; }
  .ecosystem-icon { width: 38px; height: 38px; border-radius: 10px; }
  .ecosystem-text strong { font-size: 0.95rem; }
  .ecosystem-text span   { font-size: 0.85rem; }

  /* Buttons full-width feel cleaner on tiny screens */
  .hero-actions { width: 100%; gap: 0.75rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-register {
    flex: 1 1 100%;
    justify-content: center;
  }

  /* Footer collapses to single column */
  .footer { padding: 40px 1rem 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }

  /* Integration breathing room */
  .ug-integration { padding: 60px 1rem; }
  .ug-int-header { margin-bottom: 2.25rem; }
  .ug-int-eyebrow { font-size: 0.7rem; }

  /* USP / banner tighter spacing */
  .ug-advantage { padding: 60px 1rem; }
  .ug-adv-banner { padding: 1.5rem 1.25rem; }
  .ug-adv-banner h3 { font-size: 1.15rem; }
  .ug-adv-stats { grid-template-columns: 1fr 1fr; }

  /* Implementation stepper compact */
  .ug-impl { padding: 60px 1rem; }
  .ug-stepper__node { width: 48px; height: 48px; font-size: 0.85rem; }

  /* Bento card padding */
  .ug-bento__card--feature { padding: 1.75rem 1.4rem; }
  .ug-bento__card { padding: 1.4rem; }
  .ug-bento__stat strong { font-size: clamp(2.4rem, 9vw, 3rem); }

  /* Capabilities tabs panel */
  .ug-panel__body { padding: 1.25rem 1.25rem 1.5rem; }
  .ug-checklist li { font-size: 0.88rem; padding-left: 1.7rem; }

  /* Section spacing */
  #app > div + div { margin-top: 2rem; }
}

/* ---- Tiny phones (≤ 360px) ---- */
@media (max-width: 360px) {
  .ug-hero__title { font-size: 1.5rem; }
  .hero-title { font-size: 1.55rem; }
  .module-capsule { width: 100%; max-width: 260px; }
  .ug-int-card { padding: 1.2rem 1rem; }
  .ug-bento__card { padding: 1.2rem; }
}
