/* ═══ DriverX product page ════════════════════════════════════════════
   Linked after driverx.css on driverx.html only. driverx.css owns the
   phone mock and the feature switch; this file owns the page around it:
   a product hero that holds the device and the four capability tabs, an
   integration flow diagram, and a fit checklist.
   Written by tools/blueprint_design.py.
   ------------------------------------------------------------------ */

/* ── hero: copy + capability tabs left, device right, truck still behind ── */
.dx-hero { padding: 9vh 0 8vh; }
.dx-hero-media { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.dx-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .5;
                     transform: scale(1.03); filter: saturate(.55) contrast(1.05); }
.dx-hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(7,10,6,.94) 34%, rgba(7,10,6,.55) 62%, rgba(7,10,6,.4) 100%),
              linear-gradient(0deg, var(--bg) 0%, rgba(7,10,6,.4) 30%, transparent 70%); }
.dx-hero::before { z-index: 0; }
.dx-hero .dx-grid { position: relative; z-index: 1; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: center; gap: 5vw; }
.dx-hero .dx-copy { padding-bottom: 0; }
.dx-hero .lead { max-width: 54ch; }
.dx-hero h1 { max-width: 15ch; }
.dx-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; animation: heroIn .9s var(--ease) .34s both; }
.btn-ghost { display: inline-block; padding: 13px 26px; border: 1px solid var(--line); border-radius: 100px; font-size: 13px; letter-spacing: .12em;
             text-transform: uppercase; color: rgba(239,243,233,.8); text-decoration: none; transition: border-color .3s var(--ease), color .3s var(--ease); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.dx-feats-k { margin-top: 40px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--text-dim); animation: heroIn .9s var(--ease) .42s both; }
.dx-hero .dx-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 14px; animation: heroIn .9s var(--ease) .46s both; }
.dx-hero .dx-feat { padding: 16px 0 18px 2px; grid-template-columns: 1fr; }
.dx-hero .dx-feat:nth-child(2) { border-top: 1px solid rgba(239,243,233,.10); }
.dx-hero .dx-feat:nth-last-child(2) { border-bottom: 1px solid rgba(239,243,233,.10); }
.dx-hero .dx-name { font-size: clamp(16px, 1.3vw, 19px); }
.dx-hero .dx-note { font-size: 12.5px; margin-top: 5px; max-width: 34ch; }
.dx-hero .dx-stage { position: static; animation: heroIn 1s var(--ease) .3s both; }
.dx-hero .dx-phone { width: min(310px, 82%); }
.dx-hero .dx-sync { margin-top: 30px; }
.dx-hero .dx-sync span:first-child, .dx-hero .dx-sync span:last-child { color: rgba(239,243,233,.72); }

/* ── section heads (same shape as the capability family) ── */
.dx-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px 6vw; align-items: end; margin-bottom: 58px; }
.dx-head h2 { font-size: clamp(28px, 3.8vw, 50px); font-weight: 600; margin: 18px 0 0; max-width: 20ch; }
.dx-head > p { color: var(--text-dim); font-size: clamp(14px, 1.2vw, 16.5px); line-height: 1.75; max-width: 52ch; padding-bottom: 6px; }
.dx-head.solo { grid-template-columns: 1fr; }
.eyebrow b { font-weight: 400; color: rgba(239,243,233,.48); margin-right: 4px; }

/* ── flow: SAP TM -> DriverX -> downstream, on animated wires ── */
.dx-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .5fr) minmax(0, 1.15fr) minmax(120px, .5fr) minmax(0, 1fr); align-items: center; gap: 0; }
.dx-node { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 26px 26px 28px; min-height: 100%; }
.dx-node.is-focus { border-color: rgba(179,210,48,.45); background: rgba(179,210,48,.06); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.dx-node-k { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.dx-node.is-focus .dx-node-k { color: var(--lime); }
.dx-node h4, .dx-node h3 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.dx-node p { font-size: 14px; color: var(--text-dim); line-height: 1.65; margin: 0; }
.dx-node ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.dx-node li { position: relative; padding-left: 16px; font-size: 13.5px; color: rgba(239,243,233,.84); }
.dx-node li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--lime); }
.dx-link { position: relative; height: 12px; overflow: visible; }
/* two-way: one lane each direction, each carrying a comet-shaped pulse whose bright head leads, so the direction reads without arrowheads */
.dx-lane { position: absolute; left: 0; right: 0; height: 1px; background: rgba(239,243,233,.16); }
.dx-lane.fwd { top: 0; }
.dx-lane.back { bottom: 0; }
.dx-lane::after { content: ""; position: absolute; top: -1.5px; left: 0; width: 34px; height: 4px; border-radius: 4px;
                  background: linear-gradient(90deg, transparent, rgba(46,171,198,.45) 60%, var(--cyan)); animation: dxLinkRun 2.8s linear infinite; }
.dx-lane.back::after { background: linear-gradient(270deg, transparent, rgba(46,171,198,.45) 60%, var(--cyan)); animation-name: dxLinkBack; animation-delay: -1.4s; }
/* each pulse travels its lane's own length: it starts flush with one node and stops flush with the other, never inside either */
@keyframes dxLinkRun { from { left: 0; transform: none; } to { left: 100%; transform: translateX(-100%); } }
@keyframes dxLinkBack { from { left: 100%; transform: translateX(-100%); } to { left: 0; transform: none; } }
@keyframes dxLinkRunV { from { top: 0; transform: none; } to { top: 100%; transform: translateY(-100%); } }
@keyframes dxLinkBackV { from { top: 100%; transform: translateY(-100%); } to { top: 0; transform: none; } }
.dx-link span { position: absolute; left: 8px; right: 8px; top: -30px; text-align: center; line-height: 1.35; font-family: 'IBM Plex Mono', monospace;
                font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }

/* ── fit: use cases as a checklist ── */
.dx-fit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 5vw; border-top: 1px solid var(--line); }
.dx-fit li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line);
             font-size: 16.5px; font-weight: 500; line-height: 1.5; color: rgba(239,243,233,.9); }
.dx-fit svg { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(179,210,48,.5); color: var(--lime); padding: 6px; margin-top: 1px; }

/* ── responsive ── */
@media (max-width: 1080px) {
  .dx-flow { grid-template-columns: 1fr; gap: 0; }
  .dx-link { width: 12px; height: 64px; margin: 0 auto; }
  .dx-lane { top: 0; bottom: 0; right: auto; width: 1px; height: auto; }
  .dx-lane.fwd { left: 0; }
  .dx-lane.back { left: auto; right: 0; }
  .dx-lane::after { top: 0; left: -1.5px; width: 4px; height: 34px; background: linear-gradient(180deg, transparent, rgba(46,171,198,.45) 60%, var(--cyan)); animation-name: dxLinkRunV; }
  .dx-lane.back::after { background: linear-gradient(0deg, transparent, rgba(46,171,198,.45) 60%, var(--cyan)); animation-name: dxLinkBackV; }
  .dx-link span { left: 26px; right: auto; top: 50%; transform: translateY(-50%); text-align: left; white-space: nowrap; }
  .dx-node { min-height: 0; }
}
@media (max-width: 900px) {
  .dx-hero .dx-grid { grid-template-columns: 1fr; gap: 4vh; }
  .dx-hero .dx-feats { grid-template-columns: 1fr; gap: 0; margin-top: 26px; }
  .dx-hero .dx-feat:nth-child(2), .dx-hero .dx-feat:nth-last-child(2) { border-top: 0; border-bottom: 0; }
  .dx-head { grid-template-columns: 1fr; }
  .dx-head > p { padding-bottom: 0; }
  .dx-fit { grid-template-columns: 1fr; }
  .dx-fit li { font-size: 15.5px; }
}
@media (max-width: 620px) {
  .dx-hero-media img { opacity: .3; }
  .dx-node ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-actions, .dx-hero .dx-feats, .dx-hero .dx-stage { animation: none; }
  .dx-lane::after { display: none; }
}
