/* Home experience and WebGL slider — scoped to avoid the global reset from the demo package. */
:root {
  --upgrade-green: #087b58;
  --upgrade-green-dark: #043d2e;
  --upgrade-green-light: #dff6ec;
  --upgrade-coral: #ee4c51;
  --upgrade-ink: #14221e;
  --upgrade-cream: #f5f4ee;
}

.webgl-hero {
  background: var(--upgrade-green-dark);
  color: #fff;
  min-height: clamp(650px, calc(100svh - 104px), 790px);
  overflow: hidden;
  position: relative;
}

.webgl-canvas,
.webgl-fallback,
.webgl-shade { inset: 0; position: absolute; }
.webgl-canvas canvas { display: block; height: 100%; width: 100%; }
.webgl-fallback img { height: 100%; object-fit: cover; transition: opacity .18s ease; width: 100%; }
.webgl-fallback img.is-changing { opacity: .35; }
.has-webgl .webgl-fallback { visibility: hidden; }
.webgl-source { height: 1px; left: -9999px; overflow: hidden; position: absolute; width: 1px; }
.webgl-shade {
  background:
    linear-gradient(90deg, rgba(1,28,20,.95) 0%, rgba(2,44,31,.86) 42%, rgba(2,37,27,.32) 72%, rgba(1,23,17,.25) 100%),
    linear-gradient(0deg, rgba(1,22,16,.68) 0%, transparent 48%);
  pointer-events: none;
}
.webgl-shade::after {
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  inset: 0;
  opacity: .22;
  position: absolute;
}

.hero-stage { min-height: inherit; padding-bottom: 7rem; padding-top: clamp(3.5rem, 7vh, 5.5rem); position: relative; z-index: 2; }
.hero-slides { min-height: 365px; position: relative; width: min(720px, 68%); }
.hero-slide { opacity: 0; pointer-events: none; position: absolute; transform: translateY(25px); transition: opacity .4s ease, transform .55s ease; visibility: hidden; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; position: relative; transform: none; visibility: visible; }
.hero-kicker { align-items: center; display: inline-flex; font-size: .75rem; font-weight: 800; gap: .7rem; letter-spacing: .13em; margin-bottom: 1.2rem; text-transform: uppercase; }
.hero-kicker::before { background: var(--upgrade-coral); content: ""; height: 2px; width: 34px; }
.hero-slide h1, .hero-slide h2 { color: #fff; font-size: clamp(2.15rem, 3.7vw, 3.85rem); font-weight: 760; letter-spacing: -.045em; line-height: 1.04; margin-bottom: 1.2rem; max-width: 760px; text-wrap: balance; }
.hero-slide p { color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.7; max-width: 690px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.65rem; }
.hero-actions .btn { align-items: center; display: inline-flex; justify-content: center; min-height: 54px; }
.btn-coral { background: var(--upgrade-coral); border-color: var(--upgrade-coral); box-shadow: 0 12px 30px rgba(238,76,81,.28); color: #fff; }
.btn-coral:hover, .btn-coral:focus { background: #fa5d61; border-color: #fa5d61; color: #fff; transform: translateY(-2px); }
.btn-ghost { background: #fff; border: 1px solid #fff; box-shadow: 0 12px 30px rgba(0,0,0,.16); color: var(--upgrade-green-dark); }
.btn-ghost:hover, .btn-ghost:focus { background: var(--upgrade-green-light); border-color: var(--upgrade-green-light); color: var(--upgrade-green-dark); transform: translateY(-2px); }

.hero-controls { align-items: center; bottom: 2rem; display: flex; gap: .7rem; left: 12px; position: absolute; right: 12px; }
.hero-arrow, .hero-pause { align-items: center; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 auto; height: 42px; justify-content: center; width: 42px; }
.hero-arrow:hover, .hero-pause:hover { background: #fff; color: var(--upgrade-green-dark); }
.hero-pagination { display: flex; flex: 1; gap: .5rem; max-width: 660px; }
.hero-pagination button { background: transparent; border: 0; border-top: 2px solid rgba(255,255,255,.28); color: rgba(255,255,255,.6); display: flex; flex: 1; gap: .55rem; padding: .7rem 0; text-align: left; }
.hero-pagination button.is-active { border-color: var(--upgrade-coral); color: #fff; }
.hero-pagination span { font-size: .68rem; font-weight: 700; }
.hero-pagination b { font-size: .74rem; font-weight: 700; }

.proof-strip { background: #fff; border-bottom: 1px solid #e4ece8; box-shadow: 0 16px 35px rgba(15,60,45,.06); }
.proof-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.proof-grid > div { border-right: 1px solid #e4ece8; padding: 1.45rem 1rem; }
.proof-grid > div:last-child { border-right: 0; }
.proof-grid strong { color: var(--upgrade-green); display: block; font-size: 1.1rem; letter-spacing: -.02em; }
.proof-grid span {font-weight: 700; color: #444; display: block; font-size: .82rem; line-height: 1.4; margin-top: .2rem; }

.split-heading { align-items: end; display: grid; gap: 2rem; grid-template-columns: 1.25fr .75fr; margin-bottom: 3rem; max-width: none; }
.split-heading p { color: #63706b; font-size: 1rem; line-height: 1.7; margin: 0; }
.journey-section { background: var(--upgrade-cream); }
.journey-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.journey-card { background: #fff; border: 1px solid #e1e9e5; border-radius: 24px; box-shadow: 0 18px 45px rgba(25,65,50,.08); min-height: 430px; overflow: hidden; padding: clamp(2rem, 4vw, 3.5rem); position: relative; }
.journey-card > i { color: var(--upgrade-coral); font-size: 2.4rem; }
.journey-card h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 740; letter-spacing: -.04em; margin: 1.5rem 0 1rem; max-width: 520px; }
.journey-card p, .journey-card li { color: #5f6d67; line-height: 1.65; }
.journey-card ul { list-style: none; margin: 1.4rem 0 2rem; padding: 0; }
.journey-card li { margin: .45rem 0; padding-left: 1.5rem; position: relative; }
.journey-card li::before { color: var(--upgrade-coral); content: "✓"; font-weight: 800; left: 0; position: absolute; }
.journey-number { color: rgba(7,123,88,.08); font-size: 8rem; font-weight: 850; line-height: 1; position: absolute; right: 1.5rem; top: 1rem; }
.journey-enterprise { background: var(--upgrade-green); border-color: var(--upgrade-green); color: #fff; }
.journey-enterprise > i, .journey-enterprise li::before { color: #9ff2cd; }
.journey-enterprise p, .journey-enterprise li { color: rgba(255,255,255,.82); }
.journey-enterprise .journey-number { color: rgba(255,255,255,.08); }

.problem-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.problem-card { background: #fff; border: 1px solid #e2ebe7; border-radius: 18px; color: var(--upgrade-ink); min-height: 315px; padding: 2rem; position: relative; text-decoration: none; }
.problem-card:hover { box-shadow: 0 20px 50px rgba(24,68,52,.12); color: var(--upgrade-ink); transform: translateY(-4px); }
.problem-card > i { color: var(--upgrade-green); font-size: 2rem; }
.problem-card > span { color: var(--upgrade-green); display: block; font-size: .69rem; font-weight: 800; letter-spacing: .1em; margin: 1.2rem 0 .65rem; text-transform: uppercase; }
.problem-card h3 { font-size: 1.35rem; font-weight: 740; letter-spacing: -.03em; }
.problem-card p { color: #62706a; line-height: 1.65; }
.problem-card b { bottom: 1.7rem; font-size: .76rem; position: absolute; }
.problem-card.is-green { background: var(--upgrade-green); border-color: var(--upgrade-green); color: #fff; }
.problem-card.is-green > i, .problem-card.is-green > span, .problem-card.is-green p, .problem-card.is-green:hover { color: #fff; }
.problem-card.is-coral { background: #fff0ee; border-color: #f7d5d2; }
.problem-card.is-coral > i, .problem-card.is-coral > span { color: var(--upgrade-coral); }

.solution-list { border-top: 1px solid #dfe7e3; }
.solution-list > a { align-items: center; border-bottom: 1px solid #dfe7e3; color: var(--upgrade-ink); display: grid; gap: 1.5rem; grid-template-columns: 50px 1fr 34px; padding: 1.7rem .4rem; text-decoration: none; }
.solution-list > a:hover { background: #f5faf7; padding-left: 1rem; padding-right: 1rem; }
.solution-list > a > span { color: var(--upgrade-green); font-size: .73rem; font-weight: 800; }
.solution-list h3 { font-size: 1.3rem; font-weight: 730; margin: 0 0 .3rem; }
.solution-list p { color: #66736e; margin: 0; }
.solution-list > a > i { color: var(--upgrade-coral); font-size: 1.3rem; }

.soc-section { background: linear-gradient(135deg, #043d2e, #086d50); color: #fff; position: relative; }
.soc-section h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 750; letter-spacing: -.05em; margin: 1rem 0 1.5rem; }
.soc-section p { color: rgba(255,255,255,.78); line-height: 1.75; }
.eyebrow-light { color: #9ff2cd !important; }
.workflow-list { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.workflow-list li { align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); border-radius: 15px; display: grid; gap: 1rem; grid-template-columns: 50px 1fr; padding: 1rem 1.2rem; }
.workflow-list li > span { align-items: center; background: var(--upgrade-coral); border-radius: 50%; display: inline-flex; font-size: .75rem; font-weight: 800; height: 38px; justify-content: center; width: 38px; }
.workflow-list b { display: block; font-size: .95rem; }
.workflow-list p { font-size: .78rem; margin: .2rem 0 0; }

.exam-grid { display: grid; gap: .8rem; grid-template-columns: repeat(3, 1fr); }
.exam-grid a { align-items: center; background: #fff; border: 1px solid #e1e9e5; border-radius: 14px; color: var(--upgrade-ink); display: flex; font-size: .84rem; font-weight: 700; gap: .9rem; min-height: 84px; padding: 1.1rem; text-decoration: none; }
.exam-grid a:hover { border-color: var(--upgrade-green); box-shadow: 0 12px 30px rgba(22,76,55,.09); transform: translateY(-2px); }
.exam-grid i { align-items: center; background: var(--upgrade-green-light); border-radius: 11px; color: var(--upgrade-green); display: inline-flex; font-size: 1.3rem; height: 46px; justify-content: center; width: 46px; }
.partner-note { align-items: center; background: #fff0ee; border-radius: 15px; display: grid; gap: 1rem; grid-template-columns: 48px 1fr auto; margin-top: 1.2rem; padding: 1.2rem 1.4rem; }
.partner-note > i { color: var(--upgrade-coral); font-size: 1.8rem; }
.partner-note p { color: #65706d; font-size: .8rem; margin: .25rem 0 0; }
.partner-note a { color: var(--upgrade-green-dark); font-size: .75rem; font-weight: 800; }

.sector-grid { display: grid; gap: 1rem; grid-template-columns: repeat(5, 1fr); }
.sector-grid article { background: #fff; border: 1px solid #e0e9e5; border-radius: 16px; min-height: 240px; padding: 1.5rem; }
.sector-grid article.is-green { background: var(--upgrade-green); border-color: var(--upgrade-green); color: #fff; }
.sector-grid i { color: var(--upgrade-coral); font-size: 1.8rem; }
.sector-grid h3 { font-size: 1rem; font-weight: 740; margin: 2.6rem 0 .8rem; }
.sector-grid p { color: #66736e; font-size: .78rem; line-height: 1.6; }
.sector-grid .is-green p { color: rgba(255,255,255,.8); }

.structure-photo { border-radius: 24px; box-shadow: 0 22px 55px rgba(21,65,49,.15); overflow: hidden; position: relative; }
.structure-photo img { aspect-ratio: 16/10; display: block; object-fit: cover; width: 100%; }
.structure-photo span { background: #fff; border-radius: 999px; bottom: 1.2rem; color: var(--upgrade-green-dark); font-size: .72rem; font-weight: 800; left: 1.2rem; padding: .7rem 1rem; position: absolute; }
.structure-section h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 750; letter-spacing: -.05em; margin: 1rem 0 1.4rem; }
.structure-section p { color: #61706a; line-height: 1.75; }
.feature-checks { display: grid; gap: .7rem; grid-template-columns: 1fr 1fr; margin: 1.5rem 0 2rem; }
.feature-checks span { font-size: .82rem; font-weight: 650; }
.feature-checks i { color: var(--upgrade-green); margin-right: .35rem; }


.conversion-section { background: #072f25; color: #fff; padding: clamp(4rem, 8vw, 7rem) 0; }
.conversion-grid { align-items: center; display: grid; gap: clamp(2rem, 6vw, 6rem); grid-template-columns: .9fr 1.1fr; }
.conversion-copy h2 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 4.2rem); font-weight: 760; letter-spacing: -.055em; line-height: 1.02; margin: 1rem 0 1.5rem; }
.conversion-copy p { color: rgba(255,255,255,.76); line-height: 1.75; }
.conversion-copy small { color: rgba(255,255,255,.72); display: block; margin-top: 1.4rem; }
.conversion-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.contact-card-dark { background: #fff; border: 0; color: var(--upgrade-ink); }
.contact-card-dark h3 { font-size: 1.35rem; font-weight: 740; margin-bottom: 1.4rem; }
.contact-card-dark .form-note { color: #6a7671; font-size: .7rem; margin: 1rem 0 0; }

@media (max-width: 1199.98px) {
  .webgl-hero { min-height: 720px; }
  .hero-stage { padding-top: 3.5rem; }
  .hero-slides { width: 78%; }
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
  .webgl-hero { min-height: 700px; }
  .hero-stage { padding-bottom: 7rem; padding-top: 3.5rem; }
  .hero-slides { min-height: 385px; width: 92%; }
  .webgl-shade { background: linear-gradient(90deg, rgba(1,28,20,.9), rgba(2,44,31,.58)); }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .proof-grid > div:nth-child(3) { border-right: 0; }
  .journey-grid, .split-heading, .conversion-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
  .webgl-hero { min-height: 700px; }
  .hero-stage { padding-bottom: 6.5rem; padding-top: 2.8rem; }
  .hero-slides { min-height: 445px; width: 100%; }
  .hero-slide h1, .hero-slide h2 { font-size: clamp(1.85rem, 8.2vw, 2.65rem); letter-spacing: -.035em; line-height: 1.08; }
  .hero-slide p { font-size: .93rem; }
  .hero-actions { flex-direction: column; gap: .65rem; margin-top: 1.35rem; }
  .hero-actions .btn { font-size: .86rem; min-height: 50px; padding: .75rem 1rem; width: 100%; }
  .hero-pagination b { display: none; }
  .hero-pagination button { justify-content: center; }
  .hero-arrow { display: none; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid > div { border-bottom: 1px solid #e4ece8; }
  .proof-grid > div:nth-child(even) { border-right: 0; }
  .proof-grid > div:last-child { grid-column: 1/-1; }
  .journey-card { min-height: auto; padding: 2rem 1.35rem; }
  .journey-number { font-size: 5rem; }
  .problem-grid, .exam-grid, .sector-grid { grid-template-columns: 1fr; }
  .problem-card { min-height: 300px; }
  .solution-list > a { grid-template-columns: 34px 1fr 20px; }
  .solution-list p { font-size: .78rem; }
  .partner-note { grid-template-columns: 38px 1fr; }
  .partner-note a { grid-column: 2; }
  .feature-checks { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .webgl-fallback img { transition: none; }
}
