/* =========================================================
   Lextech — AI CX Suite marketing site
   Static HTML/CSS/JS build (ported from the Figma design)
   ========================================================= */

:root {
  --brand-blue: #1B38F5;
  --brand-blue-700: #1430EE;
  --brand-blue-800: #0B19BE;
  --brand-blue-dark: #0E1FCC;
  --brand-blue-light: #3B4FFF;
  --brand-blue-muted: #E4EAFF;
  --brand-blue-tint: #F5F7FF;
  --brand-blue-headline: #95BBFF;
  --brand-navy: #0A0E2E;
  --brand-navy-light: #131840;
  --brand-gold: #C5A200;

  --gray-50: #F8F9FE;
  --gray-100: #F1F3FB;
  --gray-200: #E4EAFF;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  --hero-gradient: linear-gradient(159.32deg, #0B19BE 7.735%, #1430EE 41.547%, #1B38F5 92.265%);
  --blue-gradient: linear-gradient(180deg, #1B2FFF 0%, #0E1FCC 100%);

  --font-sans: "Plus Jakarta Sans", "Sarabun", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gray-900);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1, h2, h3, p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f3fb;
}
::-webkit-scrollbar-thumb {
  background: #1B2FFF;
  border-radius: 99px;
}

/* ---------- Layout helpers ---------- */

.container-page {
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .container-page {
    padding: 0 32px;
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
  background: var(--brand-blue-muted);
  border-radius: 999px;
  padding: 6px 16px;
}

.heading-lg {
  font-weight: 800;
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .heading-lg { font-size: 44px; }
}

.text-brand-blue { color: var(--brand-blue); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  transition: background-color .2s ease;
}
.btn-primary:hover { background: var(--brand-blue-light); }

/* Reveal-on-scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.25,.1,.25,1), transform .6s cubic-bezier(.25,.1,.25,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* =========================================================
   Nav
   ========================================================= */

.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(11, 19, 180, .15);
  width: 100%;
  max-width: 940px;
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav__logo img {
  height: 29px;
  width: auto;
}

.nav__links {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
}

.nav__links a {
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-500);
  white-space: nowrap;
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--brand-blue); }

.nav__cta {
  flex-shrink: 0;
  background: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(27, 56, 245, .35);
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  text-align: center;
  transition: background-color .2s ease;
}
.nav__cta:hover { background: var(--brand-blue-light); }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  background-image: var(--hero-gradient);
  padding: 160px 0 80px;
}

@media (min-width: 1024px) {
  .hero { padding: 176px 0 80px; }
}

.hero__blob {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.hero__blob--1 { width: 560px; height: 560px; left: 736px; top: -120px; background: rgba(8,14,160,.55); }
.hero__blob--2 { width: 380px; height: 380px; left: -60px; top: 475px; background: rgba(6,12,148,.45); }
.hero__blob--3 { width: 220px; height: 220px; left: 655px; top: 238px; background: rgba(14,22,185,.4); }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 6px 16px;
  color: #fff;
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #8ab4ff;
}
.hero__badge-text {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}
.hero__badge-text span:first-child { letter-spacing: 2px; }

.hero__title {
  font-weight: 800;
  font-size: 38px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.hero__title--accent { color: var(--brand-blue-headline); }

@media (min-width: 640px) {
  .hero__title { font-size: 48px; }
}
@media (min-width: 1024px) {
  .hero__title { font-size: 60px; }
}

.hero__lead {
  color: #fff;
  font-size: 18px;
  line-height: 1.54;
  margin: 32px 0 40px;
  max-width: 500px;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; }
}

.hero__cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  color: var(--brand-blue);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  transition: background-color .2s ease;
}
.hero__cta-primary:hover { background: var(--gray-100); }

.hero__cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.35);
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  transition: background-color .2s ease;
}
.hero__cta-secondary:hover { background: rgba(255,255,255,.1); }

.hero__email {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  height: 46px;
  max-width: 360px;
  padding: 4px;
}
.hero__email input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  padding: 0 16px;
  font-family: inherit;
}
.hero__email input::placeholder { color: rgba(255,255,255,.5); }
.hero__email button {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color .2s ease;
}
.hero__email button:hover { background: var(--gray-100); }
.hero__email button img { width: 14px; height: 14px; }

/* Hero floating cards */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

@media (min-width: 1024px) {
  .hero__visual { min-height: 500px; }
}

.hero-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
}

.hero-card--health {
  top: 8px;
  left: 0;
  box-shadow: 0 24px 64px rgba(0,0,24,.45), 0 4px 16px rgba(0,0,0,.25);
  padding: 20px;
  width: 224px;
  transform: rotate(-6deg);
}
@media (min-width: 768px) { .hero-card--health { left: 16px; } }

.hero-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.hero-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: var(--hero-gradient);
}
.hero-card__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-card__stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.hero-card__stat-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1;
}
.hero-card__stat-unit {
  font-size: 24px;
  font-weight: 700;
  color: #a8c4ff;
}

.hero-card__delta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 16px;
}
.hero-card__delta-badge {
  background: #ecfdf5;
  color: #009966;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.hero-card__delta-label {
  font-size: 11px;
  color: var(--gray-500);
}

.hero-card__bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
}
.hero-card__bars span {
  flex: 1;
  border-radius: 2px;
  background: rgba(27,56,245,.18);
}
.hero-card__bars span:last-child { background: var(--brand-blue); }

.hero-card--chat {
  bottom: 64px;
  right: 0;
  box-shadow: 0 24px 64px rgba(0,0,24,.4), 0 4px 16px rgba(0,0,0,.22);
  padding: 16px;
  width: 256px;
  transform: rotate(4deg);
}
@media (min-width: 768px) { .hero-card--chat { right: 8px; } }

.hero-card__chat-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.hero-card__ai-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: var(--hero-gradient);
  box-shadow: 0 2px 4px rgba(27,56,245,.4);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
.hero-card__chat-name {
  font-weight: 700;
  color: #0a0d1e;
  font-size: 12px;
}
.hero-card__online {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 10px;
  color: #00bc7d;
  font-weight: 700;
}
.hero-card__online-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #00d492;
}

.hero-card__bubbles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.hero-card__bubble {
  background: var(--brand-blue-tint);
  border-radius: 4px 16px 16px 16px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--gray-500);
  width: fit-content;
}
.hero-card__bubble--reply {
  background-image: var(--hero-gradient);
  border-radius: 16px 4px 16px 16px;
  color: #fff;
  margin-left: auto;
  max-width: 85%;
}

.hero-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-card__meta-time { font-size: 10px; color: var(--gray-500); }
.hero-card__meta-tag {
  background: var(--brand-blue-tint);
  color: var(--brand-blue);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.hero-card--tags {
  bottom: 0;
  left: 16px;
  box-shadow: 0 16px 48px rgba(0,0,24,.35), 0 4px 12px rgba(0,0,0,.2);
  padding: 16px 20px;
  width: 280px;
  transform: rotate(-3deg);
}
@media (min-width: 768px) { .hero-card--tags { left: 32px; } }

.hero-card__pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-card__pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.hero-card__pill--solid { background: var(--brand-blue); color: #fff; }
.hero-card__pill--outline {
  background: var(--brand-blue-tint);
  border: 1px solid var(--brand-blue-muted);
  color: var(--brand-blue);
}

.hero-card__deploy {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.hero-card__deploy-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-card__deploy-icon img { width: 10px; height: 10px; }
.hero-card__deploy-text { font-size: 11px; font-weight: 600; color: var(--gray-500); }

/* =========================================================
   Trusted By
   ========================================================= */

.trusted {
  padding: 64px 0;
  background: #F4F5FA;
}
.trusted__label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 32px;
}
.trusted__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.trusted__logos span {
  font-size: 18px;
  font-weight: 900;
  color: #b6bdd6;
  letter-spacing: -0.02em;
}

/* =========================================================
   Feature grid
   ========================================================= */

.features {
  padding: 96px 0;
  background: #F0F1F7;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head .section-pill {
  display: inline-flex;
  align-items: center;
  background: #EBEBEB;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 8px 20px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 30px;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.3;
}
@media (min-width: 768px) { .section-head h2 { font-size: 44px; } }

.features__grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 768px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  color: var(--brand-blue);
  font-size: 18px;
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 26px;
  line-height: 1.3;
}
.feature-card h3 .suffix { color: var(--brand-gold); }

.feature-card p {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 14px;
  transition: gap .2s ease;
}
.feature-card__link:hover { gap: 10px; }
.feature-card__link svg { width: 16px; height: 16px; }

/* =========================================================
   See it in action
   ========================================================= */

.see-action {
  padding: 96px 0;
  background: #fff;
  overflow: hidden;
}

.see-action__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.see-action__head p {
  color: var(--gray-500);
  font-size: 16px;
  line-height: 1.7;
  margin-top: 16px;
}
@media (min-width: 768px) { .see-action__head p { font-size: 18px; } }

.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-wrap__glow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-wrap__glow span {
  width: 384px;
  height: 384px;
  background: var(--brand-blue-muted);
  border-radius: 999px;
  filter: blur(64px);
  opacity: .5;
}

.phone {
  position: relative;
  width: 280px;
}
.phone__frame {
  position: relative;
  background: #0a0d1e;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 25px 50px -12px rgba(27,56,245,.2);
}
.phone__screen {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
}
.phone__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.phone__header span:first-child {
  font-weight: 800;
  color: var(--gray-900);
  font-size: 14px;
}
.phone__close {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--brand-blue-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--brand-blue);
  font-weight: 700;
}

.phone__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone__bubble {
  background: var(--brand-blue-tint);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 12px;
}
.phone__bubble p {
  font-size: 13px;
  color: var(--gray-800);
  line-height: 1.4;
  margin-bottom: 6px;
}
.phone__stars { color: var(--brand-blue); font-size: 14px; letter-spacing: 2px; }
.phone__timestamp { font-size: 10px; color: var(--gray-400); padding-left: 4px; margin: -4px 0; }

.phone__bubble--reply {
  background-image: var(--hero-gradient);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 12px;
  margin-left: 24px;
}
.phone__bubble--reply p { color: #fff; font-size: 12px; margin: 0; }

.phone__sentiment {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 6px 10px;
}
.phone__sentiment p { font-size: 10px; color: #b45309; margin: 0; }

.phone__footer {
  padding: 4px 14px 16px;
}
.phone__footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.phone__progress {
  height: 6px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.phone__progress span {
  display: block;
  height: 100%;
  width: 66%;
  background: var(--brand-blue);
  border-radius: 999px;
}

.stat-float {
  position: absolute;
  top: 38%;
  right: -96px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
  border: 1px solid var(--gray-100);
  padding: 16px;
  width: 160px;
  z-index: 2;
}
@media (min-width: 768px) { .stat-float { right: -128px; } }

.stat-float p:first-child { font-size: 11px; font-weight: 600; color: var(--gray-500); margin-bottom: 8px; }
.stat-float__num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
}
.stat-float__num span:first-child { font-size: 30px; font-weight: 800; color: var(--brand-blue); }
.stat-float__num span:last-child { font-size: 16px; font-weight: 700; color: var(--brand-blue-muted); }
.stat-float__sub { font-size: 11px; color: var(--gray-400); margin-bottom: 8px; }
.stat-float__badge {
  display: inline-block;
  background: #ecfdf5;
  color: #009966;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.stat-float__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  margin-bottom: 8px;
}
.stat-float__bars span {
  flex: 1;
  border-radius: 2px;
  background: var(--brand-blue-muted);
}
.stat-float__foot {
  font-size: 9px;
  color: var(--gray-400);
  line-height: 1.4;
  border-top: 1px solid var(--gray-100);
  padding-top: 8px;
  margin: 0;
}

.see-action__footer {
  text-align: center;
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
  margin: 64px auto 0;
}

/* =========================================================
   Vuvama spotlight
   ========================================================= */

.spotlight {
  padding: 96px 0;
  background: #F0F1F7;
}
.spotlight .section-head { margin-bottom: 64px; }

.spotlight__grid {
  display: grid;
  gap: 20px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .spotlight__grid { grid-template-columns: repeat(3, 1fr); }
}

.spotlight-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
}
.spotlight-card__num {
  font-size: 34px;
  font-weight: 900;
  color: var(--brand-blue);
}
.spotlight-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 12px 0;
}
.spotlight-card p {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
}

.spotlight__cta {
  text-align: center;
}
.spotlight__cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 15px;
  transition: gap .2s ease;
}
.spotlight__cta a:hover { gap: 10px; }
.spotlight__cta svg { width: 14px; height: 14px; }

/* =========================================================
   Ecosystem / diagram
   ========================================================= */

.ecosystem {
  padding: 96px 0;
  background: #fff;
  overflow: hidden;
}
.ecosystem .section-head { max-width: 640px; margin-left: auto; margin-right: auto; margin-bottom: 64px; }
.ecosystem .section-head p {
  color: var(--gray-500);
  font-size: 16px;
  line-height: 1.7;
  margin-top: 16px;
}
@media (min-width: 768px) { .ecosystem .section-head p { font-size: 18px; } }

.diagram {
  display: grid;
  gap: 24px;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .diagram {
    grid-template-columns: 192px 578px 192px;
    gap: 32px;
    max-width: fit-content;
  }
}

.diagram__col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  order: 2;
}
.diagram__col--left { order: 2; }
@media (min-width: 768px) {
  .diagram__col { grid-template-columns: 1fr; order: unset; }
}

.node-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  padding: 20px;
}
.node-card span { font-size: 12px; font-weight: 700; color: var(--brand-blue); }
.node-card h3 { font-size: 16px; font-weight: 800; color: var(--gray-900); margin-top: 4px; }
.node-card p { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

.diagram__center {
  order: 1;
  display: flex;
  justify-content: center;
}
@media (min-width: 768px) { .diagram__center { order: unset; } }

.diagram__box {
  position: relative;
  width: 100%;
  max-width: 578px;
  height: 240px;
  border-radius: 16px;
  background: #fafbff;
  border: 1px solid var(--gray-100);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) { .diagram__box { height: 280px; } }

.diagram__box svg.bg-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .06;
  pointer-events: none;
}

.diagram__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}
.diagram__content > span {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.diagram__square {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-blue);
  box-shadow: 0 0 0 10px rgba(27,56,245,.08), 0 12px 28px rgba(27,56,245,.35);
  margin-bottom: 16px;
}
.diagram__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.diagram__tags span {
  background: var(--brand-blue-muted);
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
.diagram__content p {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
}

/* =========================================================
   Stats strip
   ========================================================= */

.stats {
  position: relative;
  padding: 64px 0;
  overflow: hidden;
  background-image: var(--hero-gradient);
}
.stats__blob {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.stats__blob--1 { width: 400px; height: 400px; right: -80px; top: -120px; background: rgba(255,255,255,.06); }
.stats__blob--2 { width: 300px; height: 300px; left: -60px; top: 145px; background: rgba(255,255,255,.05); }

.stats__label {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 40px;
}

.stats__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
  padding: 0 8px;
  border-left: 1px solid rgba(255,255,255,.15);
}
.stat-item:first-child,
.stats__grid > :nth-child(3) { border-left: none; }
@media (min-width: 768px) {
  .stats__grid > :nth-child(3) { border-left: 1px solid rgba(255,255,255,.15); }
}

.stat-item__num {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) { .stat-item__num { font-size: 44px; } }
.stat-item p { color: rgba(255,255,255,.8); font-size: 14px; }

/* =========================================================
   Closing CTA
   ========================================================= */

.closing {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, #EEF1FF 0%, #F7F8FF 60%, #FFFFFF 100%);
}
@media (min-width: 768px) { .closing { padding: 128px 0; } }

.closing__blob {
  position: absolute;
  border-radius: 999px;
  background: rgba(27,56,245,.1);
  filter: blur(64px);
  pointer-events: none;
}
.closing__blob--1 { width: 560px; height: 560px; left: 50%; transform: translateX(-50%); top: -280px; }
.closing__blob--2 { width: 380px; height: 380px; left: 6%; top: 40%; }
.closing__blob--3 { width: 380px; height: 380px; right: 6%; top: 40%; }

.closing__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.closing__tag {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  border-radius: 999px;
  padding: 8px 20px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.closing h2 { margin-bottom: 16px; }
.closing p {
  color: var(--gray-500);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) { .closing p { font-size: 18px; } }

.closing__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 16px;
  box-shadow: 0 10px 15px -3px rgba(27,56,245,.3);
  transition: background-color .2s ease;
}
.closing__cta:hover { background: var(--brand-blue-light); }

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

.footer {
  background: var(--brand-navy);
  color: #fff;
}
.footer__top {
  padding: 64px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
@media (min-width: 768px) {
  .footer__top { grid-template-columns: repeat(4, 1fr); }
}

.footer__brand { grid-column: span 2; }
@media (min-width: 768px) { .footer__brand { grid-column: span 1; } }

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.footer__logo span:last-child { font-weight: 800; font-size: 20px; }

.footer__brand p {
  color: rgba(255,255,255,.5);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 220px;
}

.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  transition: background-color .2s ease, color .2s ease;
}
.footer__social a:hover { background: var(--brand-blue); color: #fff; }

.footer__col h4 {
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col a {
  color: rgba(255,255,255,.5);
  font-size: 14px;
  transition: color .2s ease;
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer__bottom-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (min-width: 768px) {
  .footer__bottom-inner { flex-direction: row; padding-top: 24px; padding-bottom: 24px; }
}
.footer__bottom p { color: rgba(255,255,255,.4); font-size: 14px; }
.footer__bottom a { color: rgba(255,255,255,.4); font-size: 14px; transition: color .2s ease; }
.footer__bottom a:hover { color: #fff; }
