/* Cargonode marketing experience — logistics-specific product storytelling. */
:root {
  --signal: #16c7b5;
  --signal-deep: #087f75;
  --cargo-blue: #2448e8;
  --cargo-night: #071120;
  --cargo-line: #cbd5e1;
  --cargo-paper: #f7f6f2;
}

.nav-inner { max-width: 1320px; }
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.hero-inner { max-width: 1320px; }
.hero-copy { position: relative; }
.hero-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--on-navy-muted);
  font: 600 11px/1.2 ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-index::before { content: "SHP / 01"; color: var(--signal); }
:root[dir="rtl"] .hero-index { font-family: var(--font-head); letter-spacing: 0; }
.hero h1 { max-width: 12ch; }
.hero-sub { max-width: 52ch; }
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy-border);
}
.hero-proof div { padding: 13px 14px; background: rgba(7,17,32,.84); }
.hero-proof b { display: block; color: var(--on-navy); font-size: 12px; }
.hero-proof span { color: var(--on-navy-muted); font-size: 10.5px; }
.hero-visual { min-height: 610px; }
.hero-console { bottom: 14px; inset-inline: 14px; }

.manifest-strip {
  position: absolute;
  z-index: 3;
  top: 58px;
  inset-inline: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  color: #fff;
  background: rgba(5,15,31,.68);
  backdrop-filter: blur(14px);
}
.manifest-strip > b { font: 700 12px/1.2 ui-monospace, Consolas, monospace; direction: ltr; }
.manifest-strip > span { color: #b6c5d9; font-size: 11px; }
.manifest-strip > i { padding: 4px 8px; border-radius: 999px; color: #98f0e5; background: rgba(22,199,181,.12); font-size: 10px; font-style: normal; font-weight: 700; }

.capability-line { background: var(--cargo-night); border: 0; }
.capability-line .trust-inner { justify-content: flex-start; gap: 0; padding: 0; }
.capability-line .lead {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 20px 24px;
  color: #9fb0c9;
  border-inline-end: 1px solid #21324b;
}
.capability-line .stat { align-self: stretch; padding: 18px 24px; border-inline-end: 1px solid #21324b; }
.capability-line .stat b { color: #f5f8fc; font-size: 14px; }
.capability-line .stat span { color: #8fa1bc; font-size: 11px; }

.fracture {
  padding: 116px 0;
  background: var(--cargo-paper);
  color: #101827;
  border-bottom: 1px solid #dfe3e8;
}
.fracture .eyebrow { color: var(--signal-deep); }
.fracture-head {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 52px;
}
.fracture-head h2 { max-width: 14ch; margin-top: 16px; font-size: clamp(36px, 5vw, 64px); letter-spacing: -.04em; }
:root[dir="rtl"] .fracture-head h2 { letter-spacing: 0; }
.fracture-head p { max-width: 56ch; color: #596579; font-size: 17px; }
.fracture-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 76px 1fr;
  min-height: 500px;
  border: 1px solid #cfd6df;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 70px -48px #12213c;
}
.fracture-side { padding: 28px; }
.fracture-side.before { background: #f1f1ef; }
.fracture-side.after { background: #fff; }
.fracture-side > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.fracture-side > header small { color: #717b8a; font: 700 10px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.fracture-side > header h3 { margin-top: 6px; font-size: 22px; }
.fracture-side > header em { width: 10px; height: 10px; border-radius: 50%; background: #e76f51; box-shadow: 0 0 0 6px rgba(231,111,81,.12); }
.fracture-side.after > header em { background: var(--signal); box-shadow: 0 0 0 6px rgba(22,199,181,.12); }
.scatter { display: grid; gap: 12px; }
.scatter-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid #d8dde5;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}
.scatter-item:nth-child(2) { margin-inline-start: 28px; }
.scatter-item:nth-child(3) { margin-inline-end: 22px; }
.scatter-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #7b8492; background: #e8eaed; }
.scatter-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.scatter-item b { display: block; font-size: 13px; }
.scatter-item span { color: #778191; font-size: 11px; }
.scatter-item i { color: #b45309; font: 700 10px/1 ui-monospace, Consolas, monospace; font-style: normal; }
.fracture-arrow { display: grid; place-items: center; background: var(--cargo-night); color: #fff; }
.fracture-arrow svg { width: 30px; height: 30px; fill: none; stroke: var(--signal); stroke-width: 1.6; }
:root[dir="rtl"] .fracture-arrow svg { transform: scaleX(-1); }
.connected-file { border: 1px solid #d9dfe8; border-radius: 15px; overflow: hidden; }
.connected-file > header { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; color: #fff; background: #0a1930; }
.connected-file > header b { font: 700 12px/1 ui-monospace, Consolas, monospace; direction: ltr; }
.connected-file > header span { color: #97eadf; font-size: 10px; }
.file-route { display: grid; grid-template-columns: repeat(5, 1fr); padding: 24px 16px 18px; background: #fbfcfe; }
.file-stop { position: relative; text-align: center; }
.file-stop::before { content: ""; position: absolute; top: 7px; inset-inline-start: 50%; width: 100%; height: 2px; background: #d4dbe5; }
.file-stop:last-child::before { display: none; }
.file-stop i { position: relative; z-index: 1; display: block; width: 15px; height: 15px; margin: 0 auto 8px; border: 3px solid #fff; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.file-stop.current i { background: var(--cargo-blue); box-shadow: 0 0 0 4px rgba(36,72,232,.12); }
.file-stop span { color: #697487; font-size: 9.5px; }
.file-ledger { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #dde3eb; border-top: 1px solid #dde3eb; }
.file-ledger div { padding: 15px; background: #fff; }
.file-ledger small { display: block; color: #7a8494; font-size: 10px; }
.file-ledger b { font-size: 13px; }
.file-events { padding: 14px 16px; display: grid; gap: 10px; border-top: 1px solid #e2e7ee; }
.file-events p { display: flex; align-items: center; gap: 9px; color: #566276; font-size: 11px; }
.file-events p::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

.story { padding: 118px 0; background: #071120; color: #edf3fb; }
.story-layout { display: grid; grid-template-columns: 330px 1fr; gap: 64px; align-items: start; }
.story-nav { position: sticky; top: 98px; }
.story-nav h2 { margin: 16px 0; font-size: clamp(34px, 4vw, 52px); }
.story-nav > p { color: #99abc4; font-size: 15px; }
.story-tabs { display: grid; gap: 5px; margin-top: 30px; }
.story-tabs { scrollbar-width: none; }
.story-tabs::-webkit-scrollbar { display: none; }
.story-tab {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #9cafc8;
  background: transparent;
  text-align: start;
  cursor: pointer;
  font-family: inherit;
}
.story-tab b { font: 700 11px/1 ui-monospace, Consolas, monospace; color: #6f819c; }
.story-tab span { font-size: 13px; font-weight: 650; }
.story-tab i { width: 7px; height: 7px; border-radius: 50%; background: #43516a; }
.story-tab:hover { color: #fff; background: #0d1b32; }
.story-tab[aria-selected="true"] { color: #fff; border-color: #263b5b; background: #11213b; }
.story-tab[aria-selected="true"] b { color: var(--signal); }
.story-tab[aria-selected="true"] i { background: var(--signal); box-shadow: 0 0 0 5px rgba(22,199,181,.1); }
.story-stage { min-width: 0; }
.story-panel { display: none; animation: story-in .38s ease both; }
.story-panel.active { display: block; }
.story-kicker { color: var(--signal); font: 700 11px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.story-panel h3 { max-width: 18ch; margin: 13px 0 26px; font-size: clamp(30px, 4vw, 48px); }
.story-canvas { border: 1px solid #263955; border-radius: 18px; overflow: hidden; background: #0b182c; box-shadow: 0 30px 80px -50px #000; }
.canvas-head { display: flex; align-items: center; gap: 10px; padding: 14px 17px; border-bottom: 1px solid #263955; color: #9caec8; font-size: 11px; }
.canvas-head b { color: #edf3fb; font: 700 12px/1 ui-monospace, Consolas, monospace; direction: ltr; }
.canvas-head .status { margin-inline-start: auto; color: #92e9de; }
.logic-row { display: grid; grid-template-columns: 1fr 54px 1fr 54px 1fr; align-items: stretch; min-height: 290px; }
.logic-cell { padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.logic-cell.system { background: #10213c; }
.logic-label { color: #6f839f; font: 700 10px/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.logic-cell h4 { color: #fff; font-size: 17px; }
.logic-cell p { color: #9caec8; font-size: 12.5px; }
.logic-arrow { display: grid; place-items: center; color: #51637e; border-inline: 1px solid #263955; }
.logic-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
:root[dir="rtl"] .logic-arrow svg { transform: scaleX(-1); }
.logic-object { margin-top: auto; padding: 13px; border: 1px solid #2a3e5d; border-radius: 11px; background: rgba(255,255,255,.025); }
.logic-object strong { display: block; margin-bottom: 5px; color: #e9f0fa; font-size: 12px; }
.logic-object span { display: block; color: #8497b2; font-size: 10.5px; }
.logic-object.alert { border-color: rgba(244,151,62,.46); background: rgba(244,151,62,.06); }
.logic-object.alert strong { color: #ffc27d; }
.logic-object.ready { border-color: rgba(22,199,181,.36); background: rgba(22,199,181,.05); }
.logic-object.ready strong { color: #8be7dc; }
.route-viz { position: relative; height: 74px; margin-top: auto; }
.route-viz::before { content: ""; position: absolute; top: 34px; inset-inline: 8px; height: 2px; background: linear-gradient(90deg, var(--signal) 0 58%, #344663 58%); }
.route-viz span { position: absolute; top: 27px; width: 16px; height: 16px; border: 3px solid #10213c; border-radius: 50%; background: var(--signal); }
.route-viz span:nth-child(1) { inset-inline-start: 5px; }
.route-viz span:nth-child(2) { inset-inline-start: 55%; background: #f4973e; animation: exception-ping 1.8s ease-out infinite; }
.route-viz span:nth-child(3) { inset-inline-end: 5px; background: #43516a; }
.story-impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #263955; border-top: 1px solid #263955; }
.story-impact div { padding: 16px 18px; background: #0a172b; }
.story-impact small { display: block; color: #6f839f; font-size: 9.5px; }
.story-impact b { color: #e9f0fa; font-size: 12px; }
@keyframes story-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes exception-ping { 0% { box-shadow: 0 0 0 0 rgba(244,151,62,.45); } 70% { box-shadow: 0 0 0 11px transparent; } }

.handoff { padding: 112px 0; background: #fff; }
.handoff-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 48px; }
.handoff-head h2 { max-width: 15ch; margin-top: 14px; font-size: clamp(34px, 5vw, 58px); color: #111827; }
.handoff-head p { color: #627085; font-size: 17px; }
.handoff-track { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid #d9e0e9; border-radius: 18px; overflow: hidden; }
.handoff-node { position: relative; min-height: 220px; padding: 22px 17px; border-inline-end: 1px solid #d9e0e9; background: #fbfcfd; }
.handoff-node:last-child { border-inline-end: 0; }
.handoff-node::after { content: ""; position: absolute; top: 50px; inset-inline-start: 48px; width: calc(100% - 30px); height: 1px; background: #aeb8c7; }
.handoff-node:last-child::after { display: none; }
.handoff-node i { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #aeb8c7; border-radius: 50%; color: #58677c; background: #fff; font: 700 10px/1 ui-monospace, Consolas, monospace; font-style: normal; }
.handoff-node.active i { color: #fff; border-color: var(--cargo-blue); background: var(--cargo-blue); }
.handoff-node h3 { margin: 36px 0 9px; color: #172033; font-size: 15px; }
.handoff-node p { color: #69768a; font-size: 11.5px; }
.handoff-node b { display: block; margin-top: 18px; color: var(--signal-deep); font-size: 10.5px; }

.control-architecture { padding: 112px 0; color: #eef4fb; background: #0b1628; border-top: 1px solid #1f304a; }
.architecture-head { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: end; margin-bottom: 44px; }
.architecture-head h2 { max-width: 14ch; margin-top: 14px; font-size: clamp(34px, 5vw, 56px); }
.architecture-head p { max-width: 58ch; color: #98aac4; font-size: 16px; }
.architecture-table { border-top: 1px solid #2a3a52; }
.architecture-row { display: grid; grid-template-columns: 70px 1.1fr 1fr 1fr; gap: 22px; align-items: center; min-height: 138px; border-bottom: 1px solid #2a3a52; }
.architecture-row > i { color: var(--signal); font: 700 12px/1 ui-monospace, Consolas, monospace; font-style: normal; }
.architecture-row h3 { font-size: 19px; }
.architecture-row p { color: #95a7c0; font-size: 12.5px; }
.architecture-row strong { justify-self: start; padding: 7px 10px; border: 1px solid #304563; border-radius: 999px; color: #b8c9de; font-size: 10.5px; font-weight: 650; }
.architecture-row:hover { background: rgba(255,255,255,.018); }
.architecture-row:hover strong { border-color: rgba(22,199,181,.45); color: #8be7dc; }

.field-story { background: var(--cargo-paper); }
.field-copy h2 { color: #101827; }

@media (max-width: 1050px) {
  .story-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .story-nav { position: static; min-width: 0; }
  .story-tabs { display: flex; overflow-x: auto; padding-bottom: 7px; }
  .story-tab { min-width: 190px; }
  .fracture-head, .handoff-head { grid-template-columns: 1fr; gap: 24px; }
  .handoff-track { grid-template-columns: repeat(3, 1fr); }
  .handoff-node:nth-child(3) { border-inline-end: 0; }
  .handoff-node:nth-child(3)::after { display: none; }
  .architecture-head { grid-template-columns: 1fr; gap: 22px; }
  .architecture-row { grid-template-columns: 54px 1fr 1fr; }
  .architecture-row strong { grid-column: 2 / -1; margin-bottom: 18px; }
}

@media (max-width: 760px) {
  .hero-index { margin-bottom: 10px; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof div { display: flex; justify-content: space-between; gap: 12px; }
  .hero-visual { min-height: 530px; }
  .manifest-strip { top: 52px; grid-template-columns: 1fr auto; }
  .manifest-strip > span { grid-column: 1 / -1; }
  .capability-line .trust-inner { display: grid; grid-template-columns: 1fr 1fr; }
  .capability-line .lead { grid-column: 1 / -1; border-bottom: 1px solid #21324b; }
  .capability-line .stat { padding: 15px 16px; }
  .fracture, .story, .handoff { padding: 76px 0; }
  .fracture-board { grid-template-columns: 1fr; }
  .fracture-arrow { min-height: 58px; }
  .fracture-arrow svg { transform: rotate(90deg); }
  :root[dir="rtl"] .fracture-arrow svg { transform: rotate(90deg); }
  .scatter-item:nth-child(2), .scatter-item:nth-child(3) { margin-inline: 0; }
  .story-tabs { width: calc(100% + 48px); max-width: 100vw; margin-inline: -24px; padding-inline: 24px; }
  .logic-row { grid-template-columns: 1fr; }
  .logic-arrow { min-height: 44px; border-inline: 0; border-block: 1px solid #263955; }
  .logic-arrow svg { transform: rotate(90deg); }
  :root[dir="rtl"] .logic-arrow svg { transform: rotate(90deg); }
  .logic-cell { min-height: 210px; }
  .story-impact { grid-template-columns: 1fr; }
  .handoff-track { display: block; }
  .handoff-node { min-height: 150px; border-inline-end: 0; border-bottom: 1px solid #d9e0e9; }
  .handoff-node:last-child { border-bottom: 0; }
  .handoff-node::after { top: 66px; inset-inline-start: 30px; width: 1px; height: calc(100% - 40px); }
  .handoff-node:nth-child(3)::after { display: block; }
  .handoff-node h3 { margin: 18px 0 7px; }
  .control-architecture { padding: 76px 0; }
  .architecture-row { grid-template-columns: 42px 1fr; gap: 10px 14px; padding: 22px 0; }
  .architecture-row p, .architecture-row strong { grid-column: 2; }
  .architecture-row strong { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .story-panel, .route-viz span, .nav-links a::after { animation: none !important; transition: none !important; }
}
