/* ==========================================================================
   DevPlus Global — shared styles
   ========================================================================== */

:root {
  --orange: #f97316;
  --orange-deep: #ea580c;
  --orange-soft: #ffedd5;
  --orange-tint: #fff4ea;
  --navy: #0b1b5c;
  --blue: #1e3a8a;
  --blue-deep: #0f2566;
  --blue-soft: #e8edff;
  --cream: #fff8f2;
  --ink: #111a3a;
  --text: #4b5675;
  --muted: #7a849e;
  --line: #e7eaf3;
  --white: #fff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 4px 14px rgba(15, 37, 102, .06);
  --shadow: 0 18px 40px rgba(15, 37, 102, .09);
  --shadow-orange: 0 14px 28px rgba(249, 115, 22, .3);
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -.02em;
}
p { margin: 0; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.accent { color: var(--orange); }
.accent-i { color: var(--orange); font-style: italic; }
.center { text-align: center; }

/* Decorative backgrounds ------------------------------------------------ */
.deco {
  background:
    radial-gradient(520px 380px at 100% 0%, rgba(249, 115, 22, .26), transparent 70%),
    radial-gradient(420px 340px at 0% 100%, rgba(249, 115, 22, .2), transparent 70%),
    var(--cream);
}
.deco-alt {
  background:
    radial-gradient(460px 340px at 0% 0%, rgba(249, 115, 22, .22), transparent 70%),
    radial-gradient(520px 380px at 100% 100%, rgba(249, 115, 22, .2), transparent 70%),
    var(--cream);
}
.bg-soft { background: #f5f7fc; }
.bg-white { background: var(--white); }
.dots {
  position: absolute;
  width: 130px;
  height: 110px;
  background-image: radial-gradient(rgba(249, 115, 22, .55) 2px, transparent 2.5px);
  background-size: 18px 18px;
  pointer-events: none;
}
.dots.tr { top: 40px; right: 4%; }
.dots.bl { bottom: 40px; left: 4%; }

/* Buttons & pills ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: linear-gradient(135deg, #fb8a2e, var(--orange-deep)); color: #fff; box-shadow: var(--shadow-orange); }
.btn-navy { background: var(--blue-deep); color: #fff; box-shadow: 0 12px 24px rgba(15, 37, 102, .25); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange-tint); }
.btn-outline-blue { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-white { background: #fff; color: var(--orange-deep); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-block { width: 100%; }
.btn-square { border-radius: 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(249, 115, 22, .55);
  background: rgba(255, 255, 255, .7);
  color: var(--orange-deep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pill-blue { border-color: transparent; background: var(--blue-soft); color: var(--blue); }
.pill-light { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .16); color: #fff; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--orange-deep);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow.blue { color: var(--blue); }

.section-head { max-width: 900px; margin: 0 auto 56px; text-align: center; }
.section-head .pill { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.section-head p { margin-top: 16px; font-size: 18px; }

.icon-box {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 24px;
  flex: none;
}
.icon-box.blue { background: var(--blue-soft); color: var(--blue); }
.icon-box.round { border-radius: 50%; }
.icon-box.sm { width: 46px; height: 46px; font-size: 19px; border-radius: 13px; }

/* Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px 0; transition: padding .2s; }
.site-header.scrolled { padding: 8px 0; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px 12px 26px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #fb8a2e, var(--orange-deep)); color: #fff; font-size: 20px; }
.brand b { color: var(--orange); font-weight: 800; }
.brand span span { font-weight: 500; color: var(--muted); margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--ink); position: relative; padding: 6px 0; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transition: transform .2s; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--orange-deep); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--navy); padding: 8px 12px; border-radius: 999px; background: #f2f4fa; }
.nav .btn { padding: 12px 22px; font-size: 14.5px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #f2f4fa; color: var(--navy); font-size: 20px; cursor: pointer; place-items: center; }

/* Hero (light) ---------------------------------------------------------- */
.hero { padding: 150px 0 90px; margin-top: -106px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.3vw, 54px); font-weight: 800; margin: 22px 0 20px; }
.hero h1 span { display: block; }
.hero h1.sm { font-size: clamp(34px, 3.7vw, 46px); }
.hero-lead { font-size: 18px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-proof { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.avatars { display: flex; }
.avatars img { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; box-shadow: var(--shadow-sm); }
.avatars img + img { margin-left: -14px; }
.hero-proof strong { display: block; font-family: var(--font-head); color: var(--orange-deep); font-size: 18px; }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; inset: -40px -60px -40px 30px; border-radius: 46% 54% 40% 60% / 50% 40% 60% 50%; background: linear-gradient(140deg, rgba(251, 138, 46, .55), rgba(249, 115, 22, .15)); z-index: 0; }
.hero-photo { position: relative; z-index: 1; border-radius: 34px; border: 6px solid #fff; box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 11 / 10; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute;
  z-index: 2;
  right: -12px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.float-card.left { right: auto; left: -28px; bottom: -22px; }
.float-card small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.float-card strong { display: block; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 22px; line-height: 1.2; }
.float-card.left strong { font-size: 17px; }
.float-card.left div span { font-size: 13.5px; line-height: 1.35; display: block; }

.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 34px; max-width: 560px; }
.mini-stat { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); }
.mini-stat strong { display: block; font-family: var(--font-head); font-size: 20px; color: var(--navy); line-height: 1.2; }
.mini-stat div span { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* Philosophy ------------------------------------------------------------ */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.split-media { position: relative; padding: 0 0 0 40px; }
.split-media::before { content: ""; position: absolute; left: 0; top: -30px; width: 70%; height: 70%; border-radius: 40px; background: linear-gradient(140deg, #fb923c, #fdba74); }
.split-media img { position: relative; width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 34px; box-shadow: var(--shadow); }
.split h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; margin: 18px 0 34px; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-bottom: 30px; }
.vm h3 { font-size: 22px; margin: 18px 0 10px; }

/* Cards ----------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature { display: flex; gap: 20px; align-items: flex-start; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { font-size: 15.5px; }

/* Stats bar ------------------------------------------------------------- */
.stats-wrap { padding: 0 0 20px; background: #f5f7fc; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 34px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--blue-deep), #14307f);
  box-shadow: 0 20px 40px rgba(15, 37, 102, .25);
}
.stat { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 6px 16px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .18); }
.stat .icon-box { background: rgba(255, 255, 255, .1); color: var(--orange); }
.stat strong { display: block; font-family: var(--font-head); font-size: 38px; font-weight: 800; color: #fff; line-height: 1.1; }
.stat div span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }

/* Partner logos --------------------------------------------------------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.logo { display: grid; place-items: center; height: 124px; padding: 22px 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: transform .2s, box-shadow .2s; }
.logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.logo img { max-height: 68px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.logos-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 44px; }
.logos-strip img { height: 38px; width: auto; }

/* Programs -------------------------------------------------------------- */
.program { display: flex; flex-direction: column; align-items: flex-start; position: relative; }
.program-top { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; }
.program-num { font-family: var(--font-head); font-size: 38px; font-weight: 800; color: var(--orange); line-height: 1; }
.program-thumb { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow-sm); }
.program h3 { font-size: 23px; margin: 10px 0 12px; color: var(--blue-deep); }
.program p { flex: 1; margin-bottom: 20px; }
.program { transition: transform .25s, box-shadow .25s, background-color .25s; }
.program h3, .program p, .program-num, .program .link-arrow { transition: color .25s; }
/* Cards are white by default and turn navy on hover / keyboard focus */
.program:hover, .program:focus-within { box-shadow: 0 20px 40px rgba(15, 37, 102, .3); }
.program:hover .program-num, .program:hover h3, .program:focus-within .program-num, .program:focus-within h3 { color: #fff; }
.program:hover p, .program:focus-within p { color: rgba(255, 255, 255, .85); }
.program:hover .program-thumb, .program:focus-within .program-thumb { outline: 2px solid rgba(255, 255, 255, .7); }
.program:hover .link-arrow, .program:focus-within .link-arrow { color: #fdba74; }

/* CTA panel ------------------------------------------------------------- */
.cta-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 56px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-radius: 36px;
  box-shadow: var(--shadow);
}
.cta-panel h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; margin: 20px 0 18px; }
.cta-panel h2 span { display: block; }
.cta-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-left: 44px; border-left: 1px solid var(--line); }
.cta-side .card { padding: 26px; }
.cta-side h3 { font-size: 19px; margin: 18px 0 10px; }
.cta-side p { font-size: 15px; }

/* Orange banner --------------------------------------------------------- */
.banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 52px 56px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(120deg, #fb8a2e, var(--orange-deep));
  box-shadow: var(--shadow-orange);
}
.banner::before, .banner::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.banner::before { width: 260px; height: 260px; right: -70px; top: -120px; }
.banner::after { width: 200px; height: 200px; left: -80px; bottom: -110px; }
.banner > * { position: relative; z-index: 1; }
.banner small { font-family: var(--font-head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; opacity: .9; }
.banner h2 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; margin: 8px 0 10px; }
.banner p { color: rgba(255, 255, 255, .92); font-size: 17px; }
.banner.blue { background: linear-gradient(120deg, #2f8fe6, #2f4fe0 60%, #4338ca); box-shadow: 0 18px 36px rgba(47, 79, 224, .3); border-radius: 26px; }

/* Why partner ----------------------------------------------------------- */
.why-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; margin-bottom: 44px; }
.why-head h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; margin-top: 18px; }
.why-head h2 span { display: block; }
.why-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.why-card { padding: 40px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.why-card:nth-child(1) { grid-column: span 5; }
.why-card:nth-child(2) { grid-column: span 7; }
.why-card:nth-child(3) { grid-column: span 7; }
.why-card:nth-child(4) { grid-column: span 5; }
.why-card h3 { font-size: 25px; margin: 22px 0 12px; }
.why-card.hot { background: linear-gradient(140deg, #fb8a2e, var(--orange-deep)); box-shadow: var(--shadow-orange); }
.why-card.hot h3 { color: #fff; }
.why-card.hot p { color: rgba(255, 255, 255, .92); }
.why-card.hot .icon-box { background: rgba(255, 255, 255, .22); color: #fff; }
.why-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -70px; border-radius: 50%; border: 34px solid rgba(255, 255, 255, .12); }
.why-card:not(.hot)::after { border-color: rgba(30, 58, 138, .05); }

/* Plans ----------------------------------------------------------------- */
.plan { display: flex; flex-direction: column; padding: 32px; border: 2px solid transparent; position: relative; }
.plan.popular { border-color: var(--blue); box-shadow: 0 22px 46px rgba(30, 58, 138, .18); background: linear-gradient(180deg, #f3f6ff, #fff 40%); }
.plan .badge { position: absolute; top: 28px; right: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.plan h3 { font-size: 24px; margin: 20px 0 6px; }
.plan .duration { font-family: var(--font-head); font-weight: 700; color: var(--orange-deep); padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.plan .label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan .focus { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.check-list .icon { color: var(--orange); margin-top: 3px; }
.plan.popular .check-list .icon { color: var(--blue); }
.plan .check-list { flex: 1; margin-bottom: 28px; }
.plans + .banner { margin-top: 32px; }

/* Stories --------------------------------------------------------------- */
.story { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.story-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.story:hover .story-media img { transform: scale(1.05); }
.story-uni { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--navy); box-shadow: var(--shadow-sm); }
.story-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-deep); }
.tags span + span::before { content: "·"; margin-right: 12px; }
.story h3 { font-size: 23px; margin: 12px 0; }
.story p { flex: 1; font-size: 15.5px; margin-bottom: 20px; }

/* Testimonials ---------------------------------------------------------- */
.dark {
  color: rgba(255, 255, 255, .85);
  background:
    radial-gradient(600px 400px at 100% 100%, rgba(249, 115, 22, .16), transparent 70%),
    radial-gradient(700px 500px at 0% 0%, rgba(59, 99, 220, .35), transparent 70%),
    linear-gradient(160deg, #0d2a7a, #081a52);
}
.dark h2 { color: #fff; }
.quote { padding: 34px; border-radius: 24px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(120, 160, 255, .3); backdrop-filter: blur(6px); display: flex; flex-direction: column; }
.quote-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(249, 115, 22, .16); color: var(--orange); font-family: Georgia, serif; font-size: 40px; font-weight: 700; line-height: 1; padding-top: 14px; }
.quote blockquote { margin: 22px 0 26px; font-style: italic; font-size: 17.5px; color: #fff; flex: 1; }
.quote footer { display: flex; gap: 16px; align-items: flex-start; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); }
.quote footer .icon-box { background: rgba(255, 255, 255, .12); color: #fff; }
.quote footer strong { display: block; color: #fff; font-family: var(--font-head); }
.quote footer div span { display: block; font-size: 14px; line-height: 1.45; }
.quote footer em { display: block; font-style: normal; font-weight: 700; font-size: 14px; color: #fdba74; margin-top: 4px; }

/* Support / compare ----------------------------------------------------- */
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.support h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; margin: 18px 0; }
.support h2 span { display: block; }
.support .feature { margin-top: 20px; }
.compare { padding: 44px; border-radius: 28px; }
.compare h3 { font-size: 30px; margin: 18px 0 14px; }
.compare-row { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 16px; align-items: center; padding: 18px 0; }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-row > strong { font-family: var(--font-head); color: var(--navy); font-size: 16.5px; line-height: 1.35; }
.compare-cell { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; font-size: 14px; line-height: 1.35; }
.compare-cell.yes { background: var(--orange-tint); font-weight: 700; color: var(--ink); }
.compare-cell.yes .icon { color: var(--orange); }
.compare-cell.no { background: #f3f5f9; color: var(--muted); }
.compare-cell.no .icon { color: #ef4444; }

/* Forms ----------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1.55fr 1fr; border-radius: 34px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.contact-form { padding: 56px; }
.contact-form h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin: 16px 0 12px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.field label i { color: var(--orange-deep); font-style: normal; }
.control { position: relative; }
.control > .icon { position: absolute; left: 16px; top: 17px; color: var(--muted); pointer-events: none; }
.control input, .control select, .control textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #f6f8fc;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.control > .icon ~ input, .control > .icon ~ select, .control > .icon ~ textarea { padding-left: 46px; }
.control textarea { min-height: 120px; resize: vertical; }
.control select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230b1b5c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.control input:focus, .control select:focus, .control textarea:focus { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(249, 115, 22, .14); }
.control ::placeholder { color: #9aa3b8; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ef4444; }
.field .error { display: none; font-size: 13px; color: #dc2626; }
.field.invalid .error { display: block; }
.counter { text-align: right; font-size: 12.5px; color: var(--muted); }
.form-success { display: none; grid-column: 1 / -1; padding: 16px 18px; border-radius: 14px; background: #ecfdf3; color: #067647; font-weight: 600; }
.form-success.show { display: block; }

.contact-info { padding: 56px 44px; color: rgba(255, 255, 255, .85); background: radial-gradient(400px 300px at 100% 100%, rgba(59, 99, 220, .5), transparent 70%), linear-gradient(160deg, #10307f, #0a1f5c); }
.contact-info h3 { color: #fff; font-size: 32px; margin-bottom: 12px; }
.info-list { display: grid; gap: 24px; margin: 30px 0; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .icon-box { background: rgba(255, 255, 255, .1); color: var(--orange); }
.info-list small { display: block; color: #93b4ff; font-size: 14px; }
.info-list strong { color: #fff; font-family: var(--font-head); font-size: 17px; line-height: 1.4; word-break: break-word; }
.chat-box { padding: 24px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); }
.chat-box .feature { gap: 14px; margin-bottom: 18px; }
.chat-box h4 { color: #fff; font-size: 19px; margin-bottom: 4px; }
.chat-box p { font-size: 14.5px; }

/* Orange page hero (case study / request) -------------------------------- */
.hero-orange { position: relative; margin-top: 8px; }
.hero-orange-inner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 420px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(120deg, #fb8a2e, var(--orange-deep));
  box-shadow: var(--shadow-orange);
}
.hero-orange-inner::before { content: ""; position: absolute; width: 320px; height: 320px; left: -120px; bottom: -160px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.hero-orange-text { position: relative; padding: 60px 20px 110px 60px; }
.hero-orange h1 { color: #fff; font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; margin: 20px 0 18px; }
.hero-orange-text p { font-size: 18px; color: rgba(255, 255, 255, .95); max-width: 560px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-orange-media { position: relative; }
.hero-orange-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%); mask-image: linear-gradient(90deg, transparent, #000 28%); }
.hero-orange-media.framed { padding: 44px 56px 110px 0; }
.hero-orange-media.framed img { position: relative; inset: auto; height: 100%; border-radius: 30px; border: 6px solid #fff; -webkit-mask-image: none; mask-image: none; }
.score { position: absolute; right: 36px; bottom: 90px; padding: 14px 22px; border-radius: 18px; background: var(--blue); border: 3px solid #fff; text-align: center; box-shadow: var(--shadow); }
.score strong { display: block; font-family: var(--font-head); font-size: 28px; color: #fff; line-height: 1.1; }
.score span { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }

.facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); margin: -62px 40px 0; padding: 26px 12px; background: #fff; border-radius: 26px; box-shadow: var(--shadow); }
.facts.four { grid-template-columns: repeat(4, 1fr); }
.fact { display: flex; align-items: center; gap: 14px; padding: 4px 18px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact .icon { font-size: 30px; color: var(--orange); }
.fact small { display: block; font-size: 13px; color: var(--muted); }
.fact strong { display: block; font-family: var(--font-head); color: var(--navy); line-height: 1.3; font-size: 15.5px; }
.fact div span { font-size: 13px; }
.facts.four .fact { position: relative; }
.facts.four .fact .icon { font-size: 22px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 4px 14px; font-size: 14px; }
.breadcrumb a:hover { color: var(--orange-deep); }
.breadcrumb .current { color: var(--navy); font-weight: 600; }

/* Tabs ------------------------------------------------------------------ */
.tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.tab { padding: 12px 30px; border-radius: 999px; border: 1.5px solid rgba(249, 115, 22, .5); background: #fff; color: var(--orange-deep); font-family: var(--font-head); font-weight: 700; cursor: pointer; transition: .2s; }
.tab:hover { background: var(--orange-tint); }
.tab.active { background: linear-gradient(135deg, #fb8a2e, var(--orange-deep)); color: #fff; border-color: transparent; box-shadow: var(--shadow-orange); }
.tab-panel { display: none; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: start; }
.tab-panel.active { display: grid; animation: fade .35s ease; }
.tab-panel h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 20px; }
.tab-panel p + p { margin-top: 16px; }
.tab-panel .check-list { margin-top: 24px; }
.tab-panel .check-list b { color: var(--navy); }
.highlights { padding: 32px; border-radius: 24px; background: #f3f6fc; }
.highlights h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; color: var(--blue); margin-bottom: 18px; }
.highlights h3 .icon { color: var(--orange); fill: var(--orange); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result { padding: 24px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.result strong { display: block; font-family: var(--font-head); font-size: 32px; color: var(--orange-deep); line-height: 1.1; }
.result span { font-size: 14px; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Request page ---------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.step-top b { font-family: var(--font-head); font-size: 46px; font-weight: 800; color: #dfe3ee; line-height: 1; }
.step-top::after { content: ""; flex: 1; border-top: 2px dotted #d5d9e6; }
.step:last-child .step-top::after { display: none; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.rfp { display: grid; grid-template-columns: 1.9fr 1fr; gap: 28px; align-items: start; }
.rfp-form { padding: 44px; border-radius: 28px; }
.rfp-form h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 8px; }
.form-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.form-title h3 { font-size: 20px; }
.aside { display: grid; gap: 22px; }
.aside-help { padding: 32px; border-radius: 24px; color: rgba(255, 255, 255, .88); background: linear-gradient(150deg, #173a94, var(--blue-deep)); box-shadow: 0 18px 36px rgba(15, 37, 102, .28); }
.aside-help .icon-box { background: rgba(255, 255, 255, .12); color: var(--orange); margin-bottom: 18px; }
.aside-help h3 { color: #fff; font-size: 23px; margin-bottom: 10px; }
.aside-help ul { display: grid; gap: 14px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); }
.aside-help li { display: flex; gap: 12px; align-items: center; color: #fff; font-weight: 600; word-break: break-word; }
.aside-help li .icon { color: var(--orange); }
.aside .card h3 { font-size: 20px; margin-bottom: 16px; }
.aside .check-list li { font-size: 15px; }
.aside-note { padding: 28px; border-radius: 24px; background: var(--orange-tint); border: 1px solid rgba(249, 115, 22, .2); text-align: center; }
.aside-note .icon-box { margin: 0 auto 14px; background: #fff; }
.aside-note h3 { color: var(--orange-deep); font-size: 18px; margin-bottom: 8px; }
.aside-note p { font-size: 14.5px; }

/* Modal ----------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: rgba(11, 27, 92, .45); backdrop-filter: blur(8px); }
.modal.open { display: grid; animation: fade .25s ease; }
.modal-box { width: min(1000px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 28px; background: #fff; box-shadow: 0 40px 80px rgba(0, 0, 0, .3); }
.modal-head { position: relative; overflow: hidden; padding: 34px 90px 44px 44px; color: #fff; background: linear-gradient(120deg, #fb8a2e, var(--orange-deep)); }
.modal-head::after { content: ""; position: absolute; width: 220px; height: 220px; right: 120px; bottom: -150px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.modal-head h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.modal-close { position: absolute; z-index: 1; top: 30px; right: 30px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--orange-deep); font-size: 20px; cursor: pointer; }
.modal-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; padding: 32px 44px 40px; margin-top: -18px; position: relative; background: #fff; border-radius: 24px 24px 0 0; }
.modal-photo { width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; border-radius: 20px; }
.modal-title { display: flex; gap: 20px; align-items: flex-start; margin-top: 24px; }
.modal-num { display: grid; place-items: center; width: 76px; height: 76px; flex: none; border-radius: 18px; background: var(--orange-soft); font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--orange-deep); }
.modal-title h3 { font-size: 30px; margin-bottom: 6px; color: var(--blue-deep); }
.who { padding: 28px; border-radius: 20px; background: #f3f6fc; }
.who h3 { font-size: 26px; margin-bottom: 18px; }
.who li { display: flex; gap: 14px; align-items: center; padding: 14px 0; color: var(--ink); font-weight: 500; line-height: 1.45; }
.who li + li { border-top: 1px solid var(--line); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.modal-actions .btn { flex: 1; }

/* Trust strip ----------------------------------------------------------- */
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 26px 40px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.trust > strong { font-family: var(--font-head); color: var(--navy); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; max-width: 220px; line-height: 1.5; }
.trust > span { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.trust > span .icon { font-size: 26px; color: var(--orange); }

/* Footer ---------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; padding: 72px 0 34px; color: rgba(255, 255, 255, .82); background: linear-gradient(160deg, #0f2a78, #091c57); }
.site-footer::before { content: ""; position: absolute; width: 260px; height: 260px; left: -130px; bottom: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(249, 115, 22, .7), rgba(249, 115, 22, 0) 70%); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 0; }
.footer-col { padding: 0 36px; }
.footer-col:first-child { padding-left: 0; }
.footer-col + .footer-col { border-left: 1px solid rgba(255, 255, 255, .12); }
.footer-col h4 { color: #fff; font-size: 20px; margin-bottom: 26px; padding-bottom: 14px; position: relative; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 4px; border-radius: 4px; background: var(--orange); }
.footer-col li + li { margin-top: 14px; }
.footer-col a { display: inline-flex; align-items: center; gap: 12px; transition: color .2s; }
.footer-col a:hover { color: #fdba74; }
.footer-contact li { display: flex; gap: 14px; align-items: center; }
.footer-contact .icon-box { background: rgba(255, 255, 255, .08); color: var(--orange); }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 44px; height: 44px; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 54px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }

/* Reveal on scroll ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
  .nav { gap: 10px; padding-left: 16px; }
  .nav .btn { padding: 11px 16px; font-size: 13.5px; }
  .brand { font-size: 18px; gap: 10px; }
  .lang { display: none; }
  .cta-panel { grid-template-columns: 1fr; padding: 44px; }
  .cta-side { padding-left: 0; border-left: 0; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 18px 0; margin-inline: 20px; }
  .fact:nth-child(4) { border-left: 0; }
  .rfp, .support { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .footer-col:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  .section { padding: 68px 0; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: calc(100% - 6px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a.active { background: var(--orange-tint); }
  .hero-grid, .split, .why-head, .contact, .tab-panel.active, .modal-body, .hero-orange-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .split-media { max-width: 520px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .stat { justify-content: flex-start; }
  .stat:nth-child(3) { border-left: 0; }
  .why-card:nth-child(n) { grid-column: span 12; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step-top::after { display: none; }
  .hero-orange-text { padding: 44px 32px 30px; }
  .hero-orange-media { min-height: 260px; }
  .hero-orange-media img { -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%); mask-image: linear-gradient(180deg, transparent, #000 25%); }
  .hero-orange-media.framed { padding: 0 32px 90px; }
  .hero-orange-media.framed img { aspect-ratio: 16 / 10; }
  .score { right: 48px; bottom: 70px; }
  .facts, .facts.four { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(n) { border-left: 0; }
  .contact-form, .contact-info { padding: 40px 28px; }
}
@media (max-width: 640px) {
  .container { width: min(1200px, 100% - 32px); }
  .nav { padding: 10px 10px 10px 16px; }
  .nav-actions .btn { display: none; }
  .brand { font-size: 18px; }
  .hero { padding-top: 130px; padding-bottom: 64px; }
  .grid-3, .grid-2, .vm, .mini-stats, .cta-side, .form, .steps, .result-grid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .logo { height: 100px; padding: 16px; }
  .logo img { max-height: 52px; }
  .float-card { right: 8px; bottom: 12px; padding: 12px 16px; }
  .float-card.left { left: 8px; bottom: 12px; }
  .float-card strong { font-size: 17px; }
  .cta-panel, .banner, .compare, .rfp-form { padding: 30px 24px; }
  .banner .btn { width: 100%; }
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-row > strong { grid-column: 1 / -1; }
  .facts, .facts.four { grid-template-columns: 1fr; margin: -40px 12px 0; }
  .modal-head { padding: 26px 76px 38px 24px; }
  .modal-body { padding: 24px; }
  .modal-close { top: 20px; right: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col { padding: 0; }
  .footer-col + .footer-col { border-left: 0; }
  .trust { padding: 24px; }
  .hero-cta .btn { width: 100%; }
}

/* React app additions --------------------------------------------------- */
.page-hero { padding: 80px 0 70px; text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; margin: 18px auto 16px; max-width: 900px; }
.page-hero p { font-size: 18px; max-width: 720px; margin: 0 auto; }
.page-hero .hero-cta { justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.consent a { color: var(--orange-deep); font-weight: 600; text-decoration: underline; }
.consent.invalid { color: #dc2626; }
.who li div { font-weight: 400; font-size: 14.5px; color: var(--text); }
.who li strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 15.5px; }
.who li { align-items: flex-start; }
.voices { display: grid; gap: 18px; }
.voice { padding: 26px 28px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); border-left: 4px solid var(--orange); }
.voice blockquote { margin: 0 0 14px; font-style: italic; font-size: 17px; color: var(--ink); }
.voice strong { font-family: var(--font-head); color: var(--navy); }
.voice span { display: block; font-size: 14px; }
.story-body .meta { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.facts.case { grid-template-columns: 1.3fr .8fr .8fr 1.3fr 1.1fr; }
@media (max-width: 1080px) { .facts.case { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .facts.case { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .facts.case { grid-template-columns: 1fr; } .page-hero { padding-top: 56px; } }
a.story-media { display: block; }
.page-hero .hero-cta { margin-top: 32px; }

/* Mobile fixes ---------------------------------------------------------- */
/* Grid children must be allowed to shrink below their content width, otherwise long fields push the page sideways */
.rfp > *, .form > *, .contact > *, .support > *, .grid-3 > *, .grid-2 > *, .hero-grid > *, .split > *, .cta-panel > *, .tab-panel > * { min-width: 0; }
@media (max-width: 640px) {
  .stats { padding: 24px 8px; gap: 22px 0; }
  .stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 16px; }
  .stat .icon-box { width: 46px; height: 46px; font-size: 19px; border-radius: 13px; }
  .stat strong { font-size: 30px; }
  .stat div span { font-size: 11px; letter-spacing: .06em; }
}
@media (max-width: 900px) {
  /* icon above the text, so narrow two-column cards keep a readable line length */
  .grid-3 > .feature { flex-direction: column; gap: 14px; }
}
/* "Partner With Us" lives inside the dropdown on phones, where the header button is hidden */
.nav-links .nav-cta { display: none; }
@media (max-width: 640px) {
  .nav-links .nav-cta { display: inline-flex; margin-top: 8px; padding: 13px 20px; color: #fff; }
  .nav-links a.nav-cta:hover { background: linear-gradient(135deg, #fb8a2e, var(--orange-deep)); }
  .dots { display: none; }
  .hero h1, .hero h1.sm { font-size: 32px; }
  .hero-orange h1 { font-size: 30px; }
}
.hero-orange-inner > *, .why-head > *, .banner > * { min-width: 0; }
@media (max-width: 640px) {
  /* long button labels may wrap instead of forcing their container wider than the screen */
  .btn { white-space: normal; text-align: center; }
  .hero-orange-text { padding: 36px 22px 26px; }
  .hero-orange-text p { font-size: 16.5px; }
}
@media (max-width: 640px) {
  .modal-title { flex-direction: column; gap: 12px; margin-top: 18px; }
  .modal-num { width: 56px; height: 56px; font-size: 24px; border-radius: 14px; }
  .modal-title h3 { font-size: 24px; }
  .modal-head h2 { font-size: 24px; }
}

/* Ecosystem cards: same navy hover as the program cards */
.grid-3 > .feature { transition: transform .25s, box-shadow .25s, background-color .25s; }
.grid-3 > .feature h3, .grid-3 > .feature p { transition: color .25s; }
.grid-3 > .feature:hover { box-shadow: 0 20px 40px rgba(15, 37, 102, .3); }
.grid-3 > .feature:hover h3 { color: #fff; }
.grid-3 > .feature:hover p { color: rgba(255, 255, 255, .85); }
.grid-3 > .feature:hover .icon-box { background: rgba(255, 255, 255, .14); color: #fdba74; }

/* Smooth hover: gradients cannot be transitioned directly, so the navy layer sits behind the content and fades in */
.program, .grid-3 > .feature { position: relative; isolation: isolate; transition: opacity .6s ease, transform .45s ease, box-shadow .45s ease; }
.program::before, .grid-3 > .feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(140deg, var(--blue-deep), #173a94);
  opacity: 0;
  transition: opacity .45s ease;
}
.program:hover::before, .program:focus-within::before, .grid-3 > .feature:hover::before { opacity: 1; }
.program h3, .program p, .program-num, .program .link-arrow,
.grid-3 > .feature h3, .grid-3 > .feature p, .grid-3 > .feature .icon-box { transition: color .45s ease, background-color .45s ease; }
.program-thumb { outline: 2px solid transparent; transition: outline-color .45s ease; }
@media (prefers-reduced-motion: reduce) {
  .program, .program::before, .program *, .grid-3 > .feature, .grid-3 > .feature::before, .grid-3 > .feature * { transition: none; }
}
