/* ============================================================
   NAVORUS — Imagery & upscale hero layer
   Image-slot dark-mode styling, hero composition, floating
   glass cards, cinematic image bands.
   ============================================================ */

/* ---- image-slot dark-mode skin ---- */
image-slot {
  color: rgba(200, 211, 228, 0.78) !important;   /* empty-state caption */
  display: block;
}
image-slot::part(frame) { background: linear-gradient(155deg, #0c1020, #06070e); }
image-slot::part(ring) { border-color: rgba(255,255,255,0.12); border-width: 1px; }

/* premium frame wrapper (provides glow border + gradient overlay + grain) */
.imgframe { position: relative; border-radius: 20px; overflow: hidden; }
.imgframe > image-slot { width: 100%; height: 100%; border-radius: inherit; }
.imgframe > img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
}
.imgframe .img-glaze {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 60px 120px -50px rgba(0,0,0,0.95);
  background:
    linear-gradient(to top, rgba(3,4,12,0.66) 0%, rgba(3,4,12,0.12) 38%, transparent 60%),
    radial-gradient(120% 80% at 80% 0%, rgba(0,102,255,0.10), transparent 55%);
}
.imgframe .img-grain {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============================================================
   HERO (image-led redesign)
   ============================================================ */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 132px 0 72px; overflow: hidden; }
#hero-canvas { opacity: 0; }
#hero-canvas.ready { opacity: 0.55; filter: blur(0.3px); }

.hero-grid {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.04fr 1.08fr; gap: 58px; align-items: center; width: 100%;
}
.hero-left { max-width: 600px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 0.98; margin: 24px 0 0; letter-spacing: -0.025em; }
.hero-sub { color: var(--gray); font-size: clamp(1.04rem, 1.5vw, 1.24rem); max-width: 520px; margin: 26px 0 0; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px;
}
.trust-avatars { display: flex; }
.trust-avatars .ta {
  width: 40px; height: 40px; border-radius: 50%; margin-left: -10px;
  box-shadow: 0 0 0 2px var(--bg), inset 0 0 0 1px rgba(255,255,255,0.08);
  display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 12px;
  position: relative;
}
.trust-avatars .ta:first-child { margin-left: 0; }
.trust-copy { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--gray-dim); }
.trust-copy b { color: #cdd5e3; font-weight: 500; }
.trust-stars { color: var(--gold); letter-spacing: 1px; font-size: 12px; }

/* hero visual composition — FleetCore AI centerpiece */
.hero-visual { position: relative; }
.fc-stage {
  position: relative; aspect-ratio: 4 / 3.4;
  display: grid; place-items: center;
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(28,42,78,0.55), rgba(10,14,28,0.0) 62%);
}
.fc-glow {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%,-50%);
  width: 78%; height: 70%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 50% 50%, rgba(120,160,225,0.55), rgba(0,102,255,0.34) 40%, rgba(59,0,255,0.12) 60%, transparent 74%);
  filter: blur(6px); animation: floaty 9s ease-in-out infinite;
}
.fc-grid {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%) perspective(520px) rotateX(62deg);
  width: 92%; height: 46%; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(61,139,255,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,139,255,0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%);
}
.fc-truck {
  position: relative; z-index: 2; width: 100%; max-width: 560px; height: auto;
  filter: drop-shadow(0 24px 50px rgba(0,102,255,0.45)) drop-shadow(0 8px 18px rgba(0,0,0,0.6));
  animation: floatNote 6.5s ease-in-out infinite;
}

/* ---- solution product renders (logo-led visuals) ---- */
.prod-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.prod-stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 76%; height: 66%; border-radius: 50%; z-index: 0; filter: blur(10px);
  animation: floaty 9s ease-in-out infinite;
}
.prod-fleet::before { background: radial-gradient(circle, rgba(110,150,220,0.5), rgba(0,102,255,0.3) 42%, transparent 72%); }
.prod-vault::before { background: radial-gradient(circle, rgba(225,185,110,0.42), rgba(245,166,35,0.22) 42%, transparent 72%); }
.prod-stage img {
  position: relative; z-index: 2; width: 80%; max-width: 400px; height: auto;
  animation: floatNote 7s ease-in-out infinite;
}
.prod-fleet img { filter: drop-shadow(0 18px 40px rgba(0,102,255,0.4)); }
.prod-vault img { filter: drop-shadow(0 18px 40px rgba(245,166,35,0.32)); }

@keyframes floatNote { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-7px);} }

/* ---- hero corner chips (compact, clear of the wordmark) ---- */
.hero-chip {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px;
  background: rgba(10,12,22,0.74); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 14px; padding: 12px 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 24px 50px -18px rgba(0,0,0,0.85);
}
.chip-tl { left: -22px; top: 6px; animation: floatNote 6s ease-in-out infinite; }
.chip-tr { right: -18px; top: 56px; animation: floatNote 6.5s ease-in-out infinite 0.5s; }
.hero-chip .hc-led { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; flex: none; animation: pulse 1.8s infinite; }
.hero-chip .hc-v { font-size: 14px; font-weight: 600; color: #eef1f6; letter-spacing: -0.01em; white-space: nowrap; }
.hero-chip .hc-v.cobalt { font-size: 1.45rem; font-weight: 700; color: var(--cobalt-hi); }
.hero-chip .hc-l { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-dim); margin-top: 3px; white-space: nowrap; }

@media (max-width: 960px) {
  .hero { padding: 116px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-left { max-width: 640px; }
  .hero-visual { max-width: 560px; }
  #hero-canvas.ready { opacity: 0.4; }
}
@media (max-width: 560px) {
  .chip-tl { left: -6px; top: 2px; }
  .chip-tr { right: -6px; top: 48px; }
}

/* ============================================================
   CINEMATIC IMAGE BAND (founder / "in the seat")
   ============================================================ */
.band { padding: 0 0 130px; }
.band-inner {
  position: relative; border-radius: 26px; overflow: hidden;
  min-height: 460px; display: grid; grid-template-columns: 1.15fr 1fr;
}
.band-photo { position: relative; }
.band-photo image-slot { width: 100%; height: 100%; }
.band-photo image-slot::part(frame) { border-radius: 0; }
.band-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 40%, rgba(6,7,14,0.85) 88%), linear-gradient(to top, rgba(6,7,14,0.5), transparent 50%);
}
.band-copy {
  position: relative; z-index: 2; background: linear-gradient(120deg, #0a0c16, #06070e);
  padding: 56px 52px; display: flex; flex-direction: column; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.band-copy .eyebrow { margin-bottom: 18px; }
.band-copy h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; }
.band-copy p { color: var(--gray); margin-top: 18px; font-size: 1.05rem; line-height: 1.65; }
.band-sign { margin-top: 26px; display: flex; align-items: center; gap: 13px; }
.band-sign image-slot { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.band-sign .bs-n { font-size: 14.5px; font-weight: 600; }
.band-sign .bs-r { font-family: var(--mono); font-size: 11px; color: var(--gray-dim); margin-top: 3px; }
@media (max-width: 860px) {
  .band { padding: 0 0 90px; }
  .band-inner { grid-template-columns: 1fr; }
  .band-photo { min-height: 280px; }
  .band-photo::after { background: linear-gradient(to top, rgba(6,7,14,0.9) 8%, transparent 60%); }
  .band-copy { padding: 40px 28px; }
}

/* ---- testimonial portraits ---- */
.tcard .who image-slot { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.tcard .who image-slot::part(frame) { background: linear-gradient(155deg,#16203c,#0a1020); }

/* ============================================================
   FINAL CTA background image
   ============================================================ */
.final { isolation: isolate; }
.final-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 60%; display: block; }
.final-bg image-slot { width: 100%; height: 100%; }
.final-bg image-slot::part(frame) { border-radius: 0; }
.final-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(58% 44% at 50% 40%, rgba(5,5,9,0.46), rgba(5,5,9,0.0) 76%),
    linear-gradient(to bottom, rgba(5,5,9,0.66) 0%, rgba(5,5,9,0.24) 32%, rgba(5,5,9,0.20) 64%, rgba(5,5,9,0.52) 100%);
}

/* problem-section accent image */
.problem-media { margin-top: 64px; }
.problem-media .imgframe { aspect-ratio: 21 / 8; }
@media (max-width: 860px){ .problem-media .imgframe { aspect-ratio: 16/10; } }

/* ============================================================
   AETERNUM VAULT — brain feature band
   ============================================================ */
.vault-feature { margin: 0 0 8px; }
.vault-feature .imgframe { aspect-ratio: 21 / 8; }
.vault-feature .imgframe > img { object-position: center 42%; }
.vault-feature .vf-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 40px 44px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.vault-feature .vf-cap h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 16ch;
}
.vault-feature .vf-cap .vf-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cobalt-hi); display: inline-block; margin-bottom: 14px;
}
.vault-feature .vf-cap .vf-badge {
  flex: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #cdd5e3; padding: 9px 14px; border-radius: 999px;
  background: rgba(10,12,22,0.74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
}
.vault-feature .vf-badge .led { width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt-hi); box-shadow: 0 0 10px var(--cobalt-hi); animation: pulse 1.8s infinite; }
@media (max-width: 720px){
  .vault-feature .imgframe { aspect-ratio: 16/11; }
  .vault-feature .vf-cap { padding: 24px 22px; flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   FLEETCORE DASHBOARD — control-room band
   ============================================================ */
.dash-band { margin-top: 56px; }
.dash-band .imgframe { aspect-ratio: 21 / 8; }
.dash-band .imgframe > img { object-position: center 46%; }
.dash-band .db-cap {
  position: absolute; left: 0; bottom: 0; z-index: 3; padding: 36px 40px; max-width: 560px;
}
.dash-band .db-cap .db-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cobalt-hi); display: inline-block; margin-bottom: 12px;
}
.dash-band .db-cap p { font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.25; color: #eef1f6; font-weight: 600; letter-spacing: -0.01em; }
.dash-section .dash { margin-top: 26px; }
@media (max-width: 720px){
  .dash-band .imgframe { aspect-ratio: 16/11; }
  .dash-band .db-cap { padding: 22px 20px; }
}


/* Scrim behind text overlaid on busy imagery (polish pass) */
.vault-feature .imgframe::after,
.dash-band .imgframe::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72%; z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(4,5,12,0.82));
  pointer-events: none;
}
@media (max-width: 640px) {
  .band { padding: 0 0 64px; }
}
