/* ============================================================
   AC Logistics — product marketing pages
   Matches homepage dark premium language
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #040b18;
  --bg-2: #071228;
  --panel: rgba(13, 30, 56, 0.55);
  --line: rgba(80, 160, 220, 0.16);
  --blue: #1f6baa;
  --cyan: #3cc5da;
  --cyan-soft: rgba(60, 197, 218, 0.14);
  --text: #eaf3fb;
  --muted: #9db4c9;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 18px;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1000px 520px at 88% -8%, rgba(21, 68, 102, 0.45) 0%, transparent 58%),
    radial-gradient(700px 420px at -10% 30%, rgba(43, 143, 212, 0.12) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #04121f;
  background: linear-gradient(120deg, #4fd2e6, #2b8fd4);
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 8px 30px rgba(46, 160, 220, 0.35);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(46, 160, 220, 0.5); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(140, 200, 240, 0.35);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--cyan); background: var(--cyan-soft); box-shadow: none; }
.btn--small { padding: 10px 20px; font-size: 12px; }
.btn--large { padding: 18px 40px; font-size: 15px; }

/* ---------- Lang toggle ---------- */
.lang-toggle {
  display: flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(140, 200, 240, 0.25);
  overflow: hidden;
  flex: none;
}
.lang-toggle button {
  background: none;
  border: 0;
  padding: 7px 13px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.lang-toggle button + button { border-left: 1px solid rgba(140, 200, 240, 0.18); }
.lang-toggle button.is-active {
  background: linear-gradient(120deg, #4fd2e6, #2b8fd4);
  color: #04121f;
}
.lang-toggle button:not(.is-active):hover { color: var(--text); }

/* ---------- Topbar ---------- */
.ptop {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  background: rgba(4, 11, 24, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.ptop__logo { display: flex; align-items: center; flex: none; }
.ptop__logo img { height: 36px; width: auto; }
.ptop__product {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  opacity: 0.9;
}
.ptop__product small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-left: 6px;
}
.ptop__spacer { flex: 1; }
.ptop__actions { display: flex; align-items: center; gap: 12px; }
.ptop__back {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.ptop__back:hover { color: var(--cyan); border-color: rgba(60, 197, 218, 0.5); }

@media (max-width: 720px) {
  .ptop { padding: 12px 16px; gap: 10px; }
  .ptop__product { display: none; }
  .ptop__back { padding: 8px 12px; font-size: 10.5px; }
}

/* ---------- Hero ---------- */
.phero {
  padding: 88px 0 48px;
  position: relative;
}
.phero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.phero__eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.phero__eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
  flex: none;
}
.phero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.phero__title em {
  font-style: normal;
  background: linear-gradient(100deg, #4fd2e6, #2b8fd4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.phero__sub {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}
.phero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 980px) {
  .phero { padding: 64px 0 36px; }
  .phero__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Product visual ---------- */
.pvisual {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 80% 0%, rgba(60, 197, 218, 0.22), transparent 55%),
    radial-gradient(70% 100% at 10% 100%, rgba(43, 143, 212, 0.22), transparent 60%),
    linear-gradient(160deg, #0a1a30, #060f1e);
  overflow: hidden;
  min-height: 280px;
  aspect-ratio: 16 / 11;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.pvisual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80, 160, 220, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 160, 220, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
  pointer-events: none;
}
.pvisual__glow {
  position: absolute;
  inset: auto 0 -40% 0;
  height: 80%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(60, 197, 218, 0.28), transparent 70%);
  pointer-events: none;
}
.pvisual__shot {
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  width: auto;
  height: 88%;
  max-width: 92%;
  border-radius: 12px;
  border: 1px solid rgba(140, 200, 240, 0.22);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 50px rgba(60, 197, 218, 0.12);
  object-fit: cover;
  object-position: top center;
}
.pvisual--hero { min-height: 320px; }
.pvisual--wide {
  margin: 20px 0 0;
  aspect-ratio: 21 / 10;
  min-height: 260px;
}
.pvisual--wide .pvisual__shot {
  top: 10%;
  height: 90%;
  max-width: 86%;
}

@media (max-width: 720px) {
  .pvisual, .pvisual--hero { min-height: 200px; aspect-ratio: 16 / 12; }
  .pvisual--wide { aspect-ratio: 16 / 11; min-height: 180px; }
}

/* ---------- Story ---------- */
.pstory {
  padding: 72px 0 24px;
}
.pstory__head {
  max-width: 720px;
  margin-bottom: 48px;
}
.pstory__label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.pstory__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.pstory__beats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pbeat {
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(13, 30, 56, 0.7), rgba(7, 18, 38, 0.4));
  position: relative;
  overflow: hidden;
}
.pbeat::before {
  content: attr(data-n);
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(60, 197, 218, 0.45);
}
.pbeat h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.pbeat p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

@media (max-width: 900px) {
  .pstory__beats { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Capability strip ---------- */
.pcaps {
  padding: 56px 0 40px;
}
.pcaps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pcap {
  padding: 24px 22px;
  border-radius: 14px;
  border: 1px solid rgba(60, 197, 218, 0.22);
  background: rgba(60, 197, 218, 0.05);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.pcap:hover {
  border-color: rgba(60, 197, 218, 0.45);
  background: rgba(60, 197, 218, 0.09);
  transform: translateY(-2px);
}
.pcap__icon {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  margin-bottom: 16px;
}
.pcap h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.pcap p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

@media (max-width: 900px) {
  .pcaps__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pcaps__grid { grid-template-columns: 1fr; }
}

/* ---------- Proof ---------- */
.pproof {
  padding: 48px 0 40px;
}
.pproof__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(13, 30, 56, 0.65), rgba(4, 11, 24, 0.3));
}
.pproof__copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.pproof__copy p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 460px;
}
.pproof .pvisual { min-height: 220px; }

@media (max-width: 900px) {
  .pproof__inner { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
}


/* ---------- Proof duo (Mailroom white-label) ---------- */
.pvisual-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
}
.pvisual-duo__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pvisual-duo__item .pvisual {
  margin: 0;
  aspect-ratio: 16 / 11;
  min-height: 150px;
}
.pvisual-duo__item .pvisual__shot {
  top: 8%;
  height: 88%;
  max-width: 92%;
}
.pvisual-duo__cap {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.pvisual-duo__cap a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.pvisual-duo__cap a:hover { color: var(--cyan); }

.pproof__note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 460px;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .pvisual-duo { grid-template-columns: 1fr; }
  .pvisual-duo__item .pvisual { min-height: 160px; }
}

/* ---------- Connectors (Pyxis) ---------- */
.pconnectors {
  padding: 20px 0 10px;
}
.pconnectors__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding: 22px 28px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(7, 18, 38, 0.55);
}
.pconnectors__label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
}
.pconnectors__row img {
  height: 22px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.pconnectors__row img:hover { opacity: 1; }

/* ---------- CTA band ---------- */
.pcta {
  padding: 56px 0 80px;
}
.pcta__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 40px 44px;
  border-radius: var(--radius);
  border: 1px solid rgba(60, 197, 218, 0.28);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(60, 197, 218, 0.18), transparent 55%),
    linear-gradient(120deg, rgba(13, 30, 56, 0.85), rgba(7, 18, 38, 0.9));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.pcta__band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pcta__band p { color: var(--muted); font-size: 15px; max-width: 480px; }
.pcta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 720px) {
  .pcta__band { padding: 28px 24px; }
}

/* ---------- Footer ---------- */
.pfoot {
  border-top: 1px solid var(--line);
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.pfoot a { color: var(--muted); transition: color 0.2s ease; }
.pfoot a:hover { color: var(--cyan); }
.pfoot__links { display: flex; gap: 20px; }

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Story beats: 4-up friendly ---------- */
.pstory__beats--4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .pstory__beats--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pstory__beats--4 { grid-template-columns: 1fr; }
}

/* ---------- Product gallery (multi-shot, reusable) ---------- */
.pgallery {
  padding: 56px 0 32px;
}
.pgallery__head {
  max-width: 720px;
  margin-bottom: 36px;
}
.pgallery__label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.pgallery__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pgallery__sub {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 560px;
}
.pgallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.pgallery__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.pgallery__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pgallery__frame {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 80% 0%, rgba(60, 197, 218, 0.18), transparent 55%),
    radial-gradient(70% 100% at 10% 100%, rgba(43, 143, 212, 0.16), transparent 60%),
    linear-gradient(160deg, #0a1a30, #060f1e);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}
.pgallery__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80, 160, 220, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 160, 220, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
  pointer-events: none;
  z-index: 0;
}
.pgallery__shot {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 1px solid rgba(140, 200, 240, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.pgallery__frame--contain .pgallery__shot {
  object-fit: contain;
  background: #0a1220;
}
.pgallery__cap {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.55;
  padding: 0 4px;
}
.pgallery__cap strong {
  display: block;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

@media (max-width: 980px) {
  .pgallery__grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .pgallery__grid,
  .pgallery__grid--3 { grid-template-columns: 1fr; }
  .pgallery__frame { aspect-ratio: 16 / 11; }
}

/* Hero shot: prefer full UI framing for dashboard screenshots */
.pvisual--hero .pvisual__shot,
.pvisual--dash .pvisual__shot {
  object-fit: cover;
  object-position: top left;
  width: 94%;
  max-width: 94%;
  height: auto;
  max-height: 90%;
  top: 6%;
  left: 3%;
  transform: none;
}
