/* WEB-01G — Work Intelligence marketing experience */

:root {
  --wi-labor: #04b078;
  --wi-equip: #5b8def;
  --wi-verify: #e8b84a;
  --wi-monitor: #35d0a0;
  --wi-constraint: #c45c26;
  --wi-idle: #4a6278;
  --wi-glass: rgba(255, 255, 255, 0.08);
  --wi-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar__link--flagship {
  font-weight: 600;
  color: var(--ink);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  white-space: nowrap;
}

.topbar__link--flagship:hover,
.topbar__link--flagship[aria-current="page"] {
  color: var(--green);
}

/* —— Hero WI —— */
.hero--wi {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(3, 94, 252, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(4, 176, 120, 0.18), transparent 50%),
    linear-gradient(160deg, #00132e 0%, #041a38 45%, #00132e 100%);
  color: #e8eef8;
}

.hero--wi .eyebrow { color: #5ee4b0 !important; }
.hero--wi .hero__headline,
.hero--wi h1.hero__headline,
.hero--wi .hero__copy h1 {
  color: #ffffff !important;
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  max-width: 16ch;
  letter-spacing: -0.03em;
}
.hero--wi .hero__subhead,
.hero--wi .hero__copy p.hero__subhead {
  color: #c5d4ea !important;
  max-width: 38rem;
  font-size: 1.125rem;
}
.hero--wi .hero__message {
  color: #8fe0c2 !important;
}
.hero--wi .hero__stack-lines {
  display: grid;
  gap: 0.2rem;
  margin: 1.25rem 0 1.5rem;
  color: #a8bad4 !important;
  font-size: 1rem;
}
.hero--wi .hero__stack-lines span { display: block; color: inherit; }
.hero--wi .btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: #00132e;
}
.hero--wi .btn--secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff !important;
}
.hero--wi .btn--secondary:hover {
  border-color: var(--green);
  color: var(--green) !important;
}

/* Ensure split hero shows illustration beside copy on desktop */
.hero--wi.hero--split .hero__split {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero--wi.hero--split .hero__split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero--wi .hero__visual {
  position: relative;
}
.hero--wi .hero__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero--wi .hero__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero--wi .hero__ambient {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 40%, rgba(4, 176, 120, 0.12), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(3, 94, 252, 0.15), transparent 35%);
  animation: wi-ambient 14s ease-in-out infinite alternate;
}

@keyframes wi-ambient {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  to { transform: translate3d(2%, -2%, 0) scale(1.04); opacity: 1; }
}

/* —— Story chapters —— */
.wi-story {
  position: relative;
}

.wi-chapter {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.wi-chapter--dark {
  background: linear-gradient(180deg, #00132e 0%, #041a38 100%);
  color: #c5d0e0;
}
.wi-chapter--dark .section-title,
.wi-chapter--dark h3 { color: #fff; }
.wi-chapter--dark .section-lead { color: #9eb0cc; }
.wi-chapter--dark .eyebrow { color: #5ee4b0; }

.wi-chapter__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .wi-chapter__grid { grid-template-columns: 1.05fr 0.95fr; }
  .wi-chapter__grid--flip .wi-chapter__copy { order: 2; }
  .wi-chapter__grid--flip .wi-chapter__media { order: 1; }
}

.wi-chapter__media figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--surface-alt);
}
.wi-chapter__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.wi-chapter__media--product img {
  object-fit: contain;
  object-position: top center;
  background: #fff;
  aspect-ratio: 4 / 3;
}
.wi-chapter--dark .wi-chapter__media figure {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Copy-led side panels (no repeated hero art) */
.wi-aside {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-alt);
  display: grid;
  gap: 1rem;
}
.wi-aside__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.wi-aside__title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.35;
}
.wi-aside p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.6;
}
.wi-aside__list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wi-aside__list li {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}
.wi-chapter--dark .wi-aside {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.wi-chapter--dark .wi-aside__title { color: #fff; }
.wi-chapter--dark .wi-aside p { color: #c5d0e0; }
.wi-chapter--dark .wi-aside__list li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e8eef8;
}

/* Continuous learning — dark-native points (not white pillar cards) */
.wi-points {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 800px) {
  .wi-points { grid-template-columns: repeat(3, 1fr); }
}
.wi-point {
  padding: 1.35rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
.wi-point h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  color: #fff;
}
.wi-point p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #c5d0e0;
}

.wi-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.wi-pill {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.wi-chapter--dark .wi-pill {
  background: var(--wi-glass);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e8eef8;
}

/* —— Operational flow ribbon —— */
.wi-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0 0;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(0, 19, 46, 0.04);
  border: 1px solid var(--line);
}
.wi-chapter--dark .wi-ribbon {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.wi-ribbon__node {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--navy-700);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.28s var(--wi-ease), box-shadow 0.28s var(--wi-ease);
}
.wi-ribbon__node[data-tone="work"] { background: linear-gradient(135deg, #046b4a, var(--wi-labor)); }
.wi-ribbon__node[data-tone="understand"] { background: linear-gradient(135deg, #0246b8, var(--blue)); }
.wi-ribbon__node[data-tone="demand"] { background: linear-gradient(135deg, #035efc, #04b078); }
.wi-ribbon__node[data-tone="staff"] { background: linear-gradient(135deg, #038a5e, var(--wi-labor)); }
.wi-ribbon__node[data-tone="exec"] { background: var(--navy-600); }
.wi-ribbon__node[data-tone="learn"] { background: linear-gradient(135deg, var(--wi-labor), var(--blue)); }
.wi-ribbon__node.is-active {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(4, 176, 120, 0.35);
}
.wi-ribbon__arrow {
  color: var(--muted);
  font-size: 1rem;
  opacity: 0.55;
}

.wi-ribbon__caption {
  width: 100%;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 1.4em;
}
.wi-chapter--dark .wi-ribbon__caption { color: #9eb0cc; }

/* —— Comparison —— */
.wi-compare {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .wi-compare { grid-template-columns: 1fr 1fr; }
}
.wi-compare__col {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.wi-compare__col--accent {
  border-color: rgba(4, 176, 120, 0.4);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(4, 176, 120, 0.12);
}
.wi-compare__col h3 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
  color: var(--ink);
}
.wi-compare__col ul { display: grid; gap: 0.65rem; }
.wi-compare__col li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--text);
  font-size: 0.98rem;
}
.wi-compare__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--muted);
}
.wi-compare__col--accent li::before { background: var(--green); }

/* Dark chapters: keep compare cards light and readable (override white h3 leak) */
.wi-chapter--dark .wi-compare__col {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}
.wi-chapter--dark .wi-compare__col h3 { color: var(--ink); }
.wi-chapter--dark .wi-compare__col li { color: var(--text); }
.wi-chapter--dark .wi-compare__col--accent {
  background: #f3fbf7;
  border-color: rgba(4, 176, 120, 0.55);
}

/* —— Explainability cards —— */
.wi-explain {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 700px) {
  .wi-explain { grid-template-columns: repeat(3, 1fr); }
}
.wi-explain__card {
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  background: var(--surface);
  font-size: 0.98rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.wi-chapter--dark .wi-explain__card {
  background: var(--wi-glass);
  border-color: rgba(255, 255, 255, 0.1);
  border-left-color: var(--green);
  color: #d5deeb;
}

/* —— FAQ —— */
.wi-faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: var(--surface);
  margin-bottom: 0.75rem;
}
.wi-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.wi-faq summary::-webkit-details-marker { display: none; }
.wi-faq details[open] summary { margin-bottom: 0.65rem; color: var(--green); }
.wi-faq details p { color: var(--text); font-size: 0.98rem; }

/* —— Bridge callout (inner pages) —— */
/* Homepage featured WI capability (not full-page takeover) */
.wi-feature {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.wi-feature__panel {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(4, 176, 120, 0.28);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(3, 94, 252, 0.1), transparent 55%),
    linear-gradient(145deg, rgba(4, 176, 120, 0.1), #fff 42%, #f7f9fc);
  box-shadow: var(--shadow-md);
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 900px) {
  .wi-feature__panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}
.wi-feature__copy .section-title { margin-bottom: 0.75rem; }
.wi-feature__copy .section-lead { margin-bottom: 0.85rem; }
.wi-feature__copy p { color: var(--text); max-width: 40rem; }
.wi-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.wi-feature__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 19, 46, 0.1);
  box-shadow: var(--shadow-sm);
  background: #e8eef6;
  min-width: 0;
  max-width: 100%;
}
.wi-feature__media picture,
.wi-feature__media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.wi-bridge {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(4, 176, 120, 0.28);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(3, 94, 252, 0.08), transparent 50%),
    linear-gradient(135deg, rgba(4, 176, 120, 0.08), rgba(255, 255, 255, 0.9));
}
.wi-bridge h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.65rem;
}
.wi-bridge p { color: var(--text); max-width: 48rem; margin-bottom: 1rem; }
.wi-bridge__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* —— Diagram panel —— */
.wi-diagram {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: #00132e;
  color: #c5d0e0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.wi-diagram__title {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.wi-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}
.wi-node {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.5rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--wi-ease), border-color 0.3s;
}
.wi-node:hover,
.wi-node:focus-visible {
  transform: translateY(-3px);
  border-color: var(--green);
  outline: none;
}
.wi-node[data-kind="labor"] { box-shadow: inset 0 0 0 2px rgba(4, 176, 120, 0.55); }
.wi-node[data-kind="equipment"] { box-shadow: inset 0 0 0 2px rgba(91, 141, 239, 0.65); }
.wi-node[data-kind="verify"] { box-shadow: inset 0 0 0 2px rgba(232, 184, 74, 0.7); }
.wi-node[data-kind="monitor"] { box-shadow: inset 0 0 0 2px rgba(53, 208, 160, 0.65); }

.wi-page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.wi-page-toc a {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}
.wi-page-toc a:hover { border-color: var(--green); color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  .hero--wi .hero__ambient { animation: none; }
  .wi-ribbon__node { transition: none; }
  .wi-node { transition: none; }
}
