:root { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body { font-family: 'Roboto', system-ui, sans-serif; }
.gradient-text { background: linear-gradient(90deg, #7c3aed 0%, #0f9f91 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-link { font-size: 13px; font-weight: 800; color: rgba(255,255,255,.88); transition: all .2s ease; }
.nav-link:hover, .nav-link.active { color: #fff; }
.mobile-link { border-radius: 10px; padding: 12px 14px; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 700; }
.mobile-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-scrolled { background: rgba(3,16,35,.94) !important; box-shadow: 0 14px 36px rgba(0,0,0,.2); }
.hero-section { min-height: 520px; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% center; opacity: .98; }
.btn-primary { display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:6px; background:#6d28d9; padding:14px 25px; color:#fff; font-size:14px; font-weight:900; box-shadow:0 14px 28px rgba(15,23,42,.20); transition:all .2s ease; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary { display:inline-flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.42); border-radius:6px; padding:14px 25px; color:#fff; font-size:14px; font-weight:900; background:rgba(255,255,255,.04); transition:all .2s ease; }
.btn-secondary:hover { background:rgba(255,255,255,.10); transform: translateY(-2px); }
.section-white { background: linear-gradient(90deg,#fff 0%,#fff 52%,#fbfcff 100%); }
.section-title { font-size: 30px; line-height: 1.18; letter-spacing: -.035em; font-weight: 900; color:#0f172a; }
.section-title.center { text-align:center; }
.feature-row { display:grid; grid-template-columns:64px 1fr; gap:22px; border-bottom:1px solid #e5e7eb; padding-bottom:20px; }
.feature-row.last { border-bottom:0; }
.feature-row h3 { font-size:16px; font-weight:900; color:#0f172a; margin-bottom:6px; }
.feature-row p { font-size:13.5px; line-height:1.65; color:#475569; font-weight:500; }
.feature-icon { width:52px; height:52px; border-radius:999px; display:flex; align-items:center; justify-content:center; font-size:22px; }
.feature-icon.purple { color:#7c3aed; background:#f1e9ff; }
.feature-icon.aqua { color:#0f9f91; background:#e5fbf7; }
.expect-item { position:relative; display:flex; flex-direction:column; align-items:center; gap:14px; min-height:110px; padding-inline:10px; }
.expect-item:not(:last-child)::after { content:""; position:absolute; right:-12px; top:20px; height:60px; width:1px; background:linear-gradient(to bottom,transparent,rgba(255,255,255,.35),transparent); }
.expect-item i { color:#3b82f6; font-size:30px; filter: drop-shadow(0 0 10px rgba(37,99,235,.45)); }
.expect-item span { font-size:13px; line-height:1.25; font-weight:900; max-width:130px; }
.course-card { height:164px; overflow:hidden; border-radius:8px; background:#020817; box-shadow:0 16px 30px rgba(15,23,42,.14); position:relative; transition:all .25s ease; }
.course-card:hover { transform: translateY(-6px); box-shadow:0 24px 45px rgba(15,23,42,.22); }
.course-card img { width:100%; height:100%; object-fit:cover; opacity:.92; transition: transform .4s ease; }
.course-card:hover img { transform: scale(1.08); }
.course-card span { position:absolute; left:0; right:0; bottom:0; z-index:2; padding:14px 12px; text-align:center; color:white; font-size:17px; font-weight:900; background:linear-gradient(to top,rgba(0,0,0,.82),rgba(0,0,0,.0)); }
.why-item { display:flex; gap:13px; align-items:flex-start; color:#dbeafe; font-size:13.5px; line-height:1.6; }
.why-item i { margin-top:2px; width:28px; height:28px; border:2px solid #8b5cf6; color:#8b5cf6; border-radius:999px; display:flex; align-items:center; justify-content:center; font-size:12px; flex:0 0 auto; }
.why-item strong { color:#fff; }
.expert-card { min-height:240px; border:1px solid #e5e7eb; border-radius:8px; padding:28px 24px; text-align:center; box-shadow:0 10px 24px rgba(15,23,42,.04); transition:all .25s ease; }
.expert-card:hover { transform: translateY(-4px); box-shadow:0 18px 38px rgba(15,23,42,.08); }
.expert-card > i { width:50px; height:50px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:14px; }
.expert-card.purple > i { color:#7c3aed; background:#f1e9ff; }
.expert-card.aqua > i { color:#0f9f91; background:#e5fbf7; }
.expert-card.amber > i { color:#f59e0b; background:#fff3d7; }
.expert-card h3 { font-size:42px; line-height:1; font-weight:900; color:#0f172a; letter-spacing:-.04em; }
.expert-card strong { display:block; margin-top:8px; font-size:13px; line-height:1.35; color:#0f172a; }
.expert-card p { margin-top:12px; font-size:12.5px; line-height:1.65; color:#475569; font-weight:500; }
.demand-card { display:grid; grid-template-columns:44px 1fr; column-gap:14px; align-items:center; border-radius:8px; background:rgba(255,255,255,.06); padding:20px 18px; }
.demand-card i { grid-row:span 2; color:#12c7b7; font-size:34px; }
.demand-card h3 { font-size:30px; font-weight:900; line-height:1; letter-spacing:-.03em; }
.demand-card h3 small { font-size:13px; font-weight:800; }
.demand-card p { margin-top:5px; font-size:12px; color:#dbeafe; font-weight:700; }
.faq-item { overflow:hidden; border:1px solid #e5e7eb; border-radius:7px; background:#fff; }
.faq-question { width:100%; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:15px 18px; font-size:13px; line-height:1.35; font-weight:800; text-align:left; color:#0f172a; }
.faq-question i { font-size:11px; color:#64748b; transition:transform .25s ease; }
.faq-answer { max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-answer p { padding:0 18px 16px; color:#475569; font-size:13px; line-height:1.7; }
.faq-item.open .faq-answer { max-height:420px; }
.faq-item.open .faq-question i { transform:rotate(180deg); }
.footer-title { font-size:14px; font-weight:900; margin-bottom:18px; }
.footer-list { display:flex; flex-direction:column; gap:10px; color:#94a3b8; font-size:13px; }
.footer-list a { transition:color .2s ease; }
.footer-list a:hover { color:#fff; }
.social-link { width:34px; height:34px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.15); border-radius:999px; color:#cbd5e1; transition:all .2s ease; }
.social-link:hover { background:rgba(255,255,255,.1); color:#fff; transform:translateY(-2px); }
.reveal { opacity:0; transform:translateY(22px); transition:opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
#backToTop.visible { opacity:1; pointer-events:auto; transform:translateY(0); }
#backToTop { transform:translateY(8px); }
@media (max-width: 1023px) {
  .hero-section { min-height:auto; }
  .hero-image { object-position:center; opacity:.62; }
  .expect-item:not(:last-child)::after { display:none; }
  .course-card { height:190px; }
}
@media (min-width: 1024px) {
  .section-title { font-size:38px; }
}


/* Exact design refinements */
.transform-image-fade { position:relative; height:320px; overflow:hidden; background:#fff; }
.transform-image-fade img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.transform-image-fade::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(to right, rgba(255,255,255,0) 58%, #fff 100%), linear-gradient(to bottom, rgba(255,255,255,0) 70%, #fff 100%), linear-gradient(to top, rgba(255,255,255,0) 82%, rgba(255,255,255,.72) 100%); }
.expect-section .expect-item { color:#0f172a; min-height:92px; }
.expect-section .expect-item:not(:last-child)::after { background:linear-gradient(to bottom,transparent,#cbd5e1,transparent); }
.expect-section .expect-item i { color:#2563eb; filter:none; font-size:28px; }
.expect-section .expect-item span { color:#0f172a; font-size:13px; line-height:1.22; }
.cta-strip { min-height:124px; }
@media (max-width: 1023px) { .transform-image-fade { height:280px; } .expect-section .expect-item:not(:last-child)::after { display:none; } .cta-strip { min-height:auto; } }


/* Professional CTA: less AI-generated, more enterprise */
.nav-contact-btn { background:#6d28d9; box-shadow:0 10px 26px rgba(15,23,42,.20); }
.nav-contact-btn:hover { background:#5b21b6; transform:translateY(-1px); }
.cta-professional { position:relative; overflow:hidden; border:1px solid #dbeafe; background:#071426; color:#fff; box-shadow:0 18px 45px rgba(15,23,42,.16); }
.cta-professional::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(124,58,237,.18),rgba(20,184,166,.10)); opacity:.75; pointer-events:none; }
.cta-professional::after { content:""; position:absolute; left:0; top:0; bottom:0; width:7px; background:#14b8a6; pointer-events:none; }
.cta-professional > * { position:relative; z-index:1; }
.cta-icon-clean { width:56px; height:56px; display:flex; align-items:center; justify-content:center; border-radius:14px; background:rgba(255,255,255,.08); color:#14b8a6; border:1px solid rgba(255,255,255,.12); }
.cta-button-clean { border-radius:6px; background:#fff; color:#4c1d95; box-shadow:0 10px 24px rgba(0,0,0,.16); transition:all .2s ease; }
.cta-button-clean:hover { transform:translateY(-1px); background:#f8fafc; }

/* v4 light theme refinements to match StarAgile's cleaner white website feel */
body { background:#ffffff; color:#111827; }
#navbar { background:rgba(255,255,255,.96) !important; border-bottom:1px solid #eef2f7 !important; box-shadow:0 8px 24px rgba(15,23,42,.05); }
#navbar .nav-link { color:#1f2937 !important; }
#navbar .nav-link:hover, #navbar .nav-link.active { color:#6d28d9 !important; }
#navbar a[href="contact.html"].rounded-md.border { border-color:#d6dbe7 !important; color:#1f2937 !important; background:#fff !important; }
#navbar a[href="contact.html"].rounded-md.border:hover { border-color:#7c3aed !important; color:#7c3aed !important; background:#f8f5ff !important; }
#mobileBtn { color:#111827 !important; border-color:#e5e7eb !important; background:#fff !important; }
#mobileMenu { background:#fff !important; border-top:1px solid #eef2f7 !important; }
.mobile-link { color:#1f2937 !important; }
.mobile-link:hover { color:#6d28d9 !important; background:#f8f5ff !important; }
.nav-scrolled { background:rgba(255,255,255,.98) !important; box-shadow:0 12px 32px rgba(15,23,42,.08) !important; }

.hero-section { background:linear-gradient(115deg,#ffffff 0%,#f8fbff 52%,#edf7ff 100%) !important; min-height:560px; border-bottom:1px solid #eef2f7; }
.hero-section .hero-image { left:auto !important; right:0 !important; width:58% !important; height:100% !important; object-position:center !important; opacity:1 !important; border-bottom-left-radius:34px; box-shadow:-28px 0 60px rgba(15,23,42,.10); }
.hero-section .absolute.inset-0 > div:nth-of-type(1) { background:linear-gradient(90deg,#ffffff 0%,#ffffff 39%,rgba(255,255,255,.82) 51%,rgba(255,255,255,.10) 74%,rgba(255,255,255,.0) 100%) !important; }
.hero-section .absolute.inset-0 > div:nth-of-type(2) { background:linear-gradient(180deg,rgba(255,255,255,.85) 0%,rgba(255,255,255,.04) 42%,rgba(255,255,255,.90) 100%) !important; }
.hero-section h1 { color:#111827 !important; }
.hero-section p { color:#475569 !important; }
.btn-secondary { color:#111827 !important; border-color:#d6dbe7 !important; background:#fff !important; box-shadow:0 10px 24px rgba(15,23,42,.06); }
.btn-secondary:hover { background:#f8fafc !important; border-color:#7c3aed !important; color:#6d28d9 !important; }
.btn-primary { background:#6d28d9 !important; box-shadow:0 14px 28px rgba(109,40,217,.20) !important; }

/* keep section structure, but make heavy dark blocks cleaner and lighter */
#why-staragile { background:#f8fafc !important; color:#0f172a !important; border-top:1px solid #eef2f7; border-bottom:1px solid #eef2f7; }
#why-staragile > div { background:#fff; box-shadow:0 18px 45px rgba(15,23,42,.07); border-radius:14px; overflow:hidden; }
#why-staragile p { color:#475569 !important; }
#why-staragile .why-item { color:#475569 !important; }
#why-staragile .why-item strong { color:#0f172a !important; }
#why-staragile .why-item i { border-color:#14b8a6 !important; color:#14b8a6 !important; background:#ecfdf5; }
#why-staragile img { min-height:430px; border-radius: 18px; }

#stats > div { background:#f8fafc !important; color:#0f172a !important; border:1px solid #e5e7eb; box-shadow:0 14px 34px rgba(15,23,42,.06) !important; }
.demand-card { background:#fff !important; border:1px solid #e5e7eb; box-shadow:0 8px 18px rgba(15,23,42,.04); }
.demand-card p { color:#475569 !important; }
.demand-card h3 { color:#0f172a !important; }

.cta-professional { background:#ffffff !important; color:#0f172a !important; border:1px solid #e5e7eb !important; box-shadow:0 18px 45px rgba(15,23,42,.08) !important; }
.cta-professional::before { background:linear-gradient(90deg,rgba(124,58,237,.06),rgba(20,184,166,.06)) !important; }
.cta-professional::after { background:#7c3aed !important; }
.cta-professional p { color:#475569 !important; }
.cta-icon-clean { background:#f3f4f6 !important; color:#6d28d9 !important; border-color:#e5e7eb !important; }
.cta-button-clean { background:#6d28d9 !important; color:#fff !important; box-shadow:0 12px 26px rgba(109,40,217,.20) !important; }
.cta-button-clean:hover { background:#5b21b6 !important; }

/* light page headers for courses/contact too */
body > section[class*="bg-gradient-to-br"], .page-hero-light { background:linear-gradient(115deg,#fff 0%,#f8fbff 55%,#edf7ff 100%) !important; }

@media (max-width:1023px){
  .hero-section .hero-image { width:100% !important; opacity:.20 !important; border-radius:0; box-shadow:none; }
  .hero-section .absolute.inset-0 > div:nth-of-type(1) { background:rgba(255,255,255,.86) !important; }
  .hero-section .absolute.inset-0 > div:nth-of-type(2) { background:linear-gradient(180deg,rgba(255,255,255,.90),rgba(255,255,255,.80)) !important; }
  .hero-section { min-height:auto; }
}

/* v5 single-page flow + improved contact page */
.form-field { display:flex; flex-direction:column; gap:8px; }
.form-field span { font-size:13px; font-weight:800; color:#0f172a; }
.form-field input, .form-field textarea { width:100%; border:1px solid #e2e8f0; border-radius:10px; padding:13px 14px; font-size:14px; color:#0f172a; background:#fff; transition:border-color .2s ease, box-shadow .2s ease; }
.form-field input:focus, .form-field textarea:focus { outline:none; border-color:#7c3aed; box-shadow:0 0 0 4px rgba(124,58,237,.10); }
.check-card { display:flex; align-items:center; gap:10px; border:1px solid #e2e8f0; border-radius:10px; padding:12px 13px; font-size:13px; font-weight:800; color:#334155; cursor:pointer; transition:all .2s ease; }
.check-card:hover { border-color:#7c3aed; background:#faf5ff; color:#4c1d95; }
.check-card input { accent-color:#7c3aed; }
.program-pill { display:inline-flex; border:1px solid #e2e8f0; background:#fff; color:#334155; border-radius:999px; padding:8px 12px; font-size:12px; font-weight:800; }
.course-card { cursor:pointer; }
.course-card:hover { border-color:#7c3aed; }

/* v6 polish: smoother light hero image blend + better course images */
.hero-section .hero-image {
  width: 66% !important;
  right: 0 !important;
  left: auto !important;
  opacity: .86 !important;
  border-bottom-left-radius: 0 !important;
  box-shadow: none !important;
  object-position: center right !important;
  filter: saturate(.95) contrast(.98) brightness(1.04);
}
.hero-section .absolute.inset-0 > div:nth-of-type(1) {
  background: linear-gradient(90deg,
    #ffffff 0%,
    #ffffff 34%,
    rgba(255,255,255,.97) 46%,
    rgba(255,255,255,.82) 58%,
    rgba(255,255,255,.42) 72%,
    rgba(255,255,255,.16) 86%,
    rgba(255,255,255,.02) 100%) !important;
}
.hero-section .absolute.inset-0 > div:nth-of-type(2) {
  background: linear-gradient(180deg,
    rgba(255,255,255,.94) 0%,
    rgba(255,255,255,.18) 34%,
    rgba(255,255,255,.08) 60%,
    rgba(255,255,255,.94) 100%) !important;
}
.hero-section::after {
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:90px;
  background:linear-gradient(to bottom, rgba(255,255,255,0), #fff 84%);
  pointer-events:none;
}
.course-card {
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e9eef7;
  background: #08111f;
}
.course-card img {
  opacity: 1;
  filter: saturate(.95) contrast(1.02);
  object-fit: contain !important;
  object-position: center center !important;
  background: #08111f;
  padding: 12px;
}
.course-card span {
  padding: 42px 12px 16px;
  background: linear-gradient(to top, rgba(2,8,23,.95) 0%, rgba(2,8,23,.60) 55%, rgba(2,8,23,0) 100%);
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
  font-size: 20px;
}
@media (max-width:1023px){
  .hero-section .hero-image { width:100% !important; opacity:.16 !important; }
}


/* v7 spacing + wider professional layout */
@media (min-width: 1024px) {
  .hero-section .relative.mx-auto,
  main > section > .mx-auto,
  footer > .mx-auto { max-width: 1360px !important; }
  .section-title { font-size: 42px; line-height: 1.12; }
}

/* more comfortable spacing so content does not feel forced into small blocks */
.feature-row { grid-template-columns: 72px 1fr; gap: 26px; padding-bottom: 28px; }
.feature-row h3 { font-size: 17px; margin-bottom: 8px; }
.feature-row p { font-size: 14.5px; line-height: 1.78; }
.feature-icon { width: 58px; height: 58px; }
.transform-image-fade { height: 380px; border-radius: 0; }

.expect-section .expect-item { min-height: 112px; padding-inline: 18px; }
.expect-section .expect-item span { font-size: 14px; line-height: 1.3; }

.course-card { height: 240px; border-radius: 14px; overflow: hidden; }
.course-card img { transition: transform .35s ease, filter .35s ease; }
.course-card:hover img { transform: scale(1.045); }
.course-card span { font-size: 24px; padding-bottom: 20px; }

/* Expertise team image section */
.expertise-image-wrap { position: relative; overflow: hidden; min-height: 440px; border-radius: 18px; background: #071426; box-shadow: 0 24px 60px rgba(15,23,42,.12); }
.expertise-image-wrap img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: center; display: block; }
.expertise-image-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(2,8,23,.34), transparent 45%); }
.expert-card { min-height: 260px; padding: 32px 24px; }
.expert-card h3 { font-size: 44px; }
.expert-card p { line-height: 1.7; }

/* Demand, FAQ and CTA breathing room */
.demand-card { padding: 28px 24px; }
.faq-item { border-radius: 14px; }
.faq-question { padding: 22px 24px; }
.faq-answer p { padding: 0 24px 24px; line-height: 1.75; }
.cta-professional { padding-top: 44px !important; padding-bottom: 44px !important; }

@media (max-width: 1023px) {
  .transform-image-fade { height: 300px; }
  .course-card { height: 220px; }
  .expertise-image-wrap, .expertise-image-wrap img { min-height: 320px; }
  .expert-card { min-height: auto; }
}

/* v8 final layout polish: balanced edges, stronger hero image, smoother blends */
@media (min-width: 1024px) {
  #navbar > div,
  .hero-section .relative.mx-auto,
  main > section > .mx-auto,
  footer > .mx-auto {
    max-width: 1440px !important;
    padding-left: 64px !important;
    padding-right: 64px !important;
  }

  .hero-section {
    min-height: 670px !important;
  }

  .hero-section .relative.mx-auto {
    min-height: 670px !important;
    padding-top: 112px !important;
    padding-bottom: 120px !important;
    align-items: center !important;
  }

  .hero-section .relative.mx-auto > div:first-child {
    max-width: 680px !important;
  }

  .hero-section h1 {
    font-size: 72px !important;
    line-height: 1.04 !important;
    letter-spacing: -0.055em !important;
  }

  .hero-section p {
    max-width: 620px !important;
    font-size: 19px !important;
    line-height: 1.75 !important;
  }
}

.hero-section {
  background: #ffffff !important;
  border-bottom: 1px solid #edf2f7 !important;
}

.hero-section .hero-image {
  width: 64% !important;
  height: 100% !important;
  right: 0 !important;
  left: auto !important;
  opacity: 1 !important;
  object-position: center right !important;
  filter: saturate(1.02) contrast(1.04) brightness(1.02) !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.08) 4%, rgba(0,0,0,.38) 15%, #000 31%), linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.08) 4%, rgba(0,0,0,.38) 15%, #000 31%), linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
  mask-composite: intersect;
}

.hero-section .absolute.inset-0 > div:nth-of-type(1) {
  background: linear-gradient(90deg,
    #ffffff 0%,
    #ffffff 37%,
    rgba(255,255,255,.94) 49%,
    rgba(255,255,255,.66) 62%,
    rgba(255,255,255,.22) 80%,
    rgba(255,255,255,0) 100%) !important;
}

.hero-section .absolute.inset-0 > div:nth-of-type(2) {
  background: linear-gradient(180deg,
    rgba(255,255,255,.76) 0%,
    rgba(255,255,255,.04) 35%,
    rgba(255,255,255,.04) 68%,
    rgba(255,255,255,.92) 100%) !important;
}

.hero-section::after {
  height: 130px !important;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 88%) !important;
}

/* make major sections breathe instead of looking packed */
.section-white,
#courses,
#why-staragile,
#expertise,
#faq {
  scroll-margin-top: 96px;
}

@media (min-width: 1024px) {
  .section-white { padding-top: 120px !important; padding-bottom: 120px !important; }
  .expect-section { padding-top: 92px !important; padding-bottom: 96px !important; }
  #courses { padding-top: 108px !important; padding-bottom: 116px !important; }
  #why-staragile { padding-top: 110px !important; padding-bottom: 112px !important; }
  #expertise { padding-top: 116px !important; padding-bottom: 116px !important; }
  #faq { padding-top: 104px !important; padding-bottom: 108px !important; }
}

/* balanced two-column image/content sections */
@media (min-width: 1024px) {
  .section-white .grid.items-start {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 72px !important;
  }

  .transform-image-fade {
    height: 420px !important;
    max-width: 100% !important;
  }

  .feature-row {
    padding-bottom: 30px !important;
  }

  #expertise .grid.items-center {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
    gap: 70px !important;
  }
}

.transform-image-fade,
.expertise-image-wrap {
  border-radius: 18px !important;
  box-shadow: 0 22px 60px rgba(15,23,42,.10) !important;
}

.transform-image-fade::after {
  background:
    linear-gradient(to right, rgba(255,255,255,0) 78%, #fff 100%),
    linear-gradient(to bottom, rgba(255,255,255,0) 78%, #fff 100%) !important;
}

.expertise-image-wrap {
  min-height: 470px !important;
}

.expertise-image-wrap img {
  min-height: 470px !important;
  object-position: center !important;
}

/* avoid oversized blank visual gap around the expertise section */
#expertise {
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%) !important;
}

/* mobile hero: keep image visible but not overpowering */
@media (max-width: 1023px) {
  .hero-section .hero-image {
    width: 100% !important;
    opacity: .32 !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  }

  .hero-section .relative.mx-auto {
    min-height: 600px !important;
    padding-top: 92px !important;
    padding-bottom: 88px !important;
    display: flex !important;
  }

  .hero-section h1 {
    font-size: clamp(42px, 11vw, 60px) !important;
  }
}

/* v9 hero fix for large desktop screens */
@media (min-width: 1024px) {
  .hero-section {
    min-height: 720px !important;
    display: flex;
    align-items: stretch;
    background: #ffffff !important;
  }

  .hero-section .relative.mx-auto {
    min-height: 648px !important;
    grid-template-columns: 0.82fr 1.18fr !important;
    padding-top: 108px !important;
    padding-bottom: 118px !important;
    align-items: center !important;
  }

  .hero-section .hero-image {
    width: 62% !important;
    height: 100% !important;
    right: 0 !important;
    left: auto !important;
    opacity: 1 !important;
    object-position: center right !important;
    filter: saturate(1.02) contrast(1.04) brightness(1.01) !important;
  }

  .hero-section .absolute.inset-0 > div:nth-of-type(1) {
    background: linear-gradient(90deg,
      #ffffff 0%,
      #ffffff 37%,
      rgba(255,255,255,.96) 45%,
      rgba(255,255,255,.72) 55%,
      rgba(255,255,255,.34) 67%,
      rgba(255,255,255,.08) 82%,
      rgba(255,255,255,0) 100%) !important;
  }

  .hero-section .absolute.inset-0 > div:nth-of-type(2) {
    background: linear-gradient(180deg,
      rgba(255,255,255,.70) 0%,
      rgba(255,255,255,.05) 28%,
      rgba(255,255,255,.02) 66%,
      rgba(255,255,255,.82) 100%) !important;
  }

  .hero-section h1 {
    max-width: 670px !important;
    font-size: clamp(58px, 4.15vw, 78px) !important;
    line-height: .98 !important;
    letter-spacing: -0.055em !important;
  }

  .hero-section p {
    max-width: 620px !important;
    margin-top: 30px !important;
    font-size: 19px !important;
    line-height: 1.75 !important;
  }

  .hero-section .btn-primary {
    margin-top: 4px !important;
  }
}

@media (min-width: 1440px) {
  .hero-section .relative.mx-auto,
  #navbar > div:first-child {
    max-width: 1480px !important;
  }

  .hero-section .relative.mx-auto {
    padding-left: 72px !important;
    padding-right: 72px !important;
  }
}

@media (min-width: 1800px) {
  .hero-section .relative.mx-auto,
  #navbar > div:first-child {
    max-width: 1540px !important;
  }

  .hero-section .hero-image {
    width: 64% !important;
  }
}

/* v10 hero desktop alignment fix: align text with nav, keep image inside container */
@media (min-width: 1024px) {
  .hero-section {
    min-height: 700px !important;
  }

  .hero-section .relative.mx-auto {
    max-width: 1440px !important;
    min-height: 700px !important;
    padding-top: 120px !important;
    padding-bottom: 116px !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    grid-template-columns: minmax(540px, 0.9fr) minmax(640px, 1.1fr) !important;
  }

  .hero-section .relative.mx-auto > div:first-child {
    max-width: 650px !important;
    margin-left: 0 !important;
  }

  .hero-section h1 {
    max-width: 640px !important;
    font-size: 68px !important;
    line-height: 1.05 !important;
  }

  .hero-section p {
    max-width: 600px !important;
  }

  .hero-section .hero-image {
    right: max(32px, calc((100vw - 1440px) / 2 + 32px)) !important;
    width: min(790px, 50vw) !important;
    height: calc(100% - 18px) !important;
    top: 18px !important;
    border-bottom-left-radius: 28px !important;
    object-position: center right !important;
    opacity: 1 !important;
    box-shadow: -18px 0 48px rgba(15,23,42,.08) !important;
  }

  .hero-section .absolute.inset-0 > div:nth-of-type(1) {
    background: linear-gradient(90deg,
      #ffffff 0%,
      #ffffff 42%,
      rgba(255,255,255,.88) 52%,
      rgba(255,255,255,.38) 67%,
      rgba(255,255,255,.06) 86%,
      rgba(255,255,255,0) 100%) !important;
  }

  .hero-section .absolute.inset-0 > div:nth-of-type(2) {
    background: linear-gradient(180deg,
      rgba(255,255,255,.70) 0%,
      rgba(255,255,255,.02) 36%,
      rgba(255,255,255,.02) 70%,
      rgba(255,255,255,.88) 100%) !important;
  }
}

@media (min-width: 1600px) {
  .hero-section .relative.mx-auto {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .hero-section .hero-image {
    right: max(16px, calc((100vw - 1440px) / 2 + 16px)) !important;
    width: min(820px, 49vw) !important;
  }
}

/* v11: hero visibility + premium light CTA */
@media (min-width: 1024px) {
  .hero-section .hero-image {
    opacity: 1 !important;
    filter: saturate(1.03) contrast(1.04) !important;
  }

  /* Reduce the washed-out overlay so the presenter and dashboard stay visible */
  .hero-section .absolute.inset-0 > div:nth-of-type(1) {
    background: linear-gradient(90deg,
      #ffffff 0%,
      #ffffff 34%,
      rgba(255,255,255,.86) 45%,
      rgba(255,255,255,.48) 56%,
      rgba(255,255,255,.14) 68%,
      rgba(255,255,255,0) 82%) !important;
  }

  .hero-section .absolute.inset-0 > div:nth-of-type(2) {
    background: linear-gradient(180deg,
      rgba(255,255,255,.46) 0%,
      rgba(255,255,255,0) 30%,
      rgba(255,255,255,0) 72%,
      rgba(255,255,255,.78) 100%) !important;
  }
}

/* Replace the forced template-style CTA with a calmer enterprise card */
.cta-professional {
  max-width: 1280px !important;
  border-radius: 28px !important;
  border: 1px solid #e2e8f0 !important;
  background: linear-gradient(135deg,#ffffff 0%,#f8fbff 58%,#f2f7ff 100%) !important;
  color: #0f172a !important;
  box-shadow: 0 24px 70px rgba(15,23,42,.08) !important;
  padding: 44px 52px !important;
  overflow: hidden !important;
}

.cta-professional::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(124,58,237,.10), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(20,184,166,.10), transparent 28%) !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

.cta-professional::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 8px !important;
  background: #6d28d9 !important;
  pointer-events: none !important;
}

.cta-professional h2 {
  color: #0f172a !important;
  letter-spacing: -0.035em !important;
}

.cta-professional p {
  color: #475569 !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
  max-width: 420px !important;
}

.cta-icon-clean {
  width: 64px !important;
  height: 64px !important;
  border-radius: 20px !important;
  background: #f5f3ff !important;
  color: #6d28d9 !important;
  border: 1px solid #ddd6fe !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8) !important;
}

.cta-button-clean {
  border-radius: 14px !important;
  background: #6d28d9 !important;
  color: #ffffff !important;
  padding: 16px 28px !important;
  box-shadow: 0 16px 32px rgba(109,40,217,.22) !important;
}

.cta-button-clean:hover {
  background: #5b21b6 !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 1023px) {
  .cta-professional {
    padding: 32px 24px !important;
    border-radius: 22px !important;
    grid-template-columns: 1fr !important;
  }

  .cta-professional h2 {
    font-size: 28px !important;
  }
}
