/* ==========================================================================
   iWEX homepage
   ========================================================================== */

.section__head { max-width: 44rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section__head h2 { margin-top: 0.4rem; }
.section__lead { margin-top: 0.75rem; }
.kicker--on-dark { color: var(--orange-400); }

/* ----- 1 · Hero --------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 120% at 78% 8%, oklch(0.30 0.075 262) 0%, transparent 55%),
    linear-gradient(160deg, var(--blue-900) 0%, var(--blue-950) 72%);
  color: oklch(0.95 0.015 255);
  padding-block: calc(var(--hdr-h) + clamp(2.5rem, 1rem + 6vw, 6rem)) clamp(3rem, 1.5rem + 5vw, 6rem);
}
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(125% 95% at 72% 18%, black, transparent 72%);
  mask-image: radial-gradient(125% 95% at 72% 18%, black, transparent 72%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero__copy { max-width: 40rem; }
.hero .hero__title { color: oklch(0.98 0.01 255); margin: 0.6rem 0 0; }
.hero .hero__title .hl { color: var(--orange-400); }
.hero__lead { color: oklch(0.86 0.025 256); margin-top: 1.25rem; max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.hero__proof { margin-top: 1.75rem; font-size: var(--step--1); color: oklch(0.78 0.03 256); font-variant-numeric: tabular-nums; }

.hero__art { justify-self: center; width: 100%; max-width: 32rem; }
.nodegraph { width: 100%; height: auto; }
.nodegraph .ng-nodes circle { fill: var(--blue-200); }
.nodegraph .ng-hot { fill: var(--orange-500); filter: drop-shadow(0 0 10px oklch(0.705 0.191 41.5 / 0.7)); }
.nodegraph .ng-edges path { stroke-dasharray: none; }
@media (prefers-reduced-motion: no-preference) {
  .nodegraph .ng-hot { animation: ng-pulse 2.8s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
  .nodegraph .ng-edges path {
    stroke-dasharray: 320; stroke-dashoffset: 320;
    animation: ng-draw 1.1s var(--ease) forwards;
  }
  .nodegraph .ng-edges path:nth-child(2n) { animation-delay: 0.12s; }
  .nodegraph .ng-edges path:nth-child(3n) { animation-delay: 0.24s; }
}
@keyframes ng-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; r: 12.5; } }
@keyframes ng-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 22rem; margin-top: 1rem; order: -1; opacity: 0.9; }
}

/* ----- 2 · Trust bar ---------------------------------------------------- */
.trust { background: var(--surface-2); border-block: 1px solid var(--border); }
.trust__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-6) var(--sp-10); padding-block: clamp(1.75rem, 1rem + 2vw, 2.75rem);
}
.trust__stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); margin: 0; padding: 0; list-style: none; }
.trust__stats .stat { display: flex; flex-direction: column; }
.trust__logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); }
.trust__logos-label { font-size: var(--step--1); color: var(--ink-muted); }
.logo-word { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em;
  color: var(--ink-muted); filter: grayscale(1); opacity: 0.8; transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease); }
.logo-word:hover { opacity: 1; color: var(--brand); }

/* ----- 3 · Audience split ---------------------------------------------- */
.split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
@media (max-width: 820px) { .split__grid { grid-template-columns: 1fr; } }
.pathcard {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pathcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.pathcard--consult { background: linear-gradient(180deg, var(--blue-50), var(--surface) 40%); }
.pathcard--consult::before { background: var(--brand); }
.pathcard--product { background: linear-gradient(180deg, var(--orange-50), var(--surface) 40%); }
.pathcard--product::before { background: var(--accent); }
.pathcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.pathcard__top h3 { margin: 0.75rem 0 0.5rem; }
.pathcard__tag { display: inline-block; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em;
  color: var(--brand); background: color-mix(in oklch, var(--brand) 12%, transparent); padding: 0.3rem 0.7rem; border-radius: var(--r-full); }
.pathcard__tag--alt { color: var(--accent-ink); background: color-mix(in oklch, var(--accent) 16%, transparent); }
.pathcard__list { list-style: none; margin: 1.25rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; flex: 1; }
.pathcard__list li a { display: inline-block; padding: 0.4rem 0.8rem; border: 1px solid var(--border-strong); border-radius: var(--r-full);
  font-size: var(--step--1); color: var(--ink); text-decoration: none; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.pathcard__list li a:hover { border-color: var(--brand); background: var(--surface-2); }
.pathcard__list--products { flex-direction: column; gap: 0.5rem; }
.pathcard__list--products li a { display: flex; flex-direction: column; width: 100%; border-radius: var(--r-md); border-color: var(--border); }
.pathcard__list--products li a span { font-weight: 600; }
.pathcard__list--products li a small { color: var(--ink-muted); font-size: var(--step--1); }
.pathcard__foot { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: auto; }

/* ----- 4 · Testimonials ------------------------------------------------- */
.testimonials { background: var(--surface-2); }
.testi__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--sp-6); }
.testi { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); box-shadow: var(--shadow-sm); margin: 0; }
.testi::before { content: "\201C"; position: absolute; top: 0.1em; left: 0.35em; font-family: var(--font-display);
  font-size: 4rem; line-height: 1; color: color-mix(in oklch, var(--accent) 45%, transparent); }
.testi__quote { position: relative; font-size: var(--step-1); line-height: 1.5; color: var(--ink); margin: 0.5rem 0 1.5rem; }
.testi__by { display: flex; flex-direction: column; gap: 0.15rem; }
.testi__name { font-weight: 640; }
.testi__role { font-size: var(--step--1); color: var(--ink-muted); }
.testi__link { margin-top: 0.4rem; font-size: var(--step--1); color: var(--accent-ink); text-decoration: none; width: fit-content; }
.testi__link:hover { text-decoration: underline; }

/* ----- 5 · Product strip ------------------------------------------------ */
.prodcard { display: flex; flex-direction: column; padding: clamp(1.35rem, 1rem + 1vw, 1.85rem); text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.prodcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.prodcard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.prodcard__mono { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  border-radius: var(--r-md); background: var(--brand); color: var(--n-50); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.prodcard__name { margin: 0 0 0.35rem; }
.prodcard__tag { color: var(--ink-muted); flex: 1; margin: 0 0 1rem; }
.prodcard__cta { font-weight: 600; color: var(--accent-ink); }
.pill { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: var(--r-full); }
.pill--live { color: var(--blue-800); background: var(--blue-100); }
.pill--beta { color: var(--accent-ink); background: var(--orange-100); }
.pill--coming-soon { color: var(--ink-muted); background: var(--surface-inset); }

/* ----- 6 · Final CTA ---------------------------------------------------- */
.cta-final {
  background: radial-gradient(110% 120% at 12% 12%, oklch(0.30 0.075 262) 0%, transparent 55%),
              linear-gradient(150deg, var(--blue-900), var(--blue-950));
  color: oklch(0.94 0.015 255);
}
.cta-final__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (max-width: 860px) { .cta-final__inner { grid-template-columns: 1fr; } }
.cta-final__copy h2 { color: oklch(0.98 0.01 255); }
.cta-final__copy .lead { color: oklch(0.85 0.025 256); }
.cta-final__alt { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: 1.5rem; }
.cta-final__wa { color: oklch(0.95 0.01 255); }

.cta-final__form { padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); display: grid; gap: var(--sp-4); }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-faint); }
.field input, .field textarea {
  font: inherit; font-size: var(--step-0); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--border-strong); border-radius: var(--r-md); padding: 0.7rem 0.85rem; width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 4.5rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px oklch(0.705 0.191 41.5 / 0.2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: var(--step--1); min-height: 1.2em; }
.form-status.is-ok { color: var(--accent-ink); font-weight: 600; }
.form-status.is-err { color: oklch(0.55 0.17 28); font-weight: 600; }
.cta-final__form .btn--primary { justify-self: start; }
