/* ══════════════════════════════════════════════════════════════
   Freightronics — product page system
   Tokens mirror index.html so the product pages read as the same
   site. Each page sets --accent to its own product colour.
   ══════════════════════════════════════════════════════════════ */

:root {
  --ink:       #eef3fb;
  --navy:      #ffffff;
  --card:      #ffffff;
  --card-hi:   #f8fafd;
  --border:    #dde5f2;
  --border-hi: rgba(26,86,255,0.42);
  --blue:      #1a56ff;
  --green:     #10b981;
  --white:     #0b1220;
  --text:      #26344d;
  --muted:     #5b6b87;
  --dim:       #93a1b8;

  --tms-color:  #1a56ff;
  --edi-color:  #0891b2;
  --trk-color:  #7c3aed;
  --oms-color:  #059669;
  --wms-color:  #d97706;
  --dock-color: #db2777;

  --accent: var(--blue);

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body:    'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  --r:    10px;
  --r-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }

a { color: var(--accent); }

/* ── Nav ─────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0.85rem 2rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 30px; height: 30px; border-radius: 7px; }
.logo-word {
  font-family: var(--display); font-size: 22px; font-weight: 800;
  color: var(--white); text-transform: uppercase; letter-spacing: 0.01em;
}
.logo-word span { color: var(--blue); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin-left: 1.5rem; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500;
}
.nav-links a:hover { color: var(--white); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: var(--r);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px var(--accent); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ── Live status pill (same behaviour as the home page) ──────── */
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  text-decoration: none; white-space: nowrap;
}
.status-pill:hover { border-color: var(--border-hi); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); position: relative; flex: none; }
.status-pill.ok .status-dot { background: var(--green); }
.status-pill.degraded .status-dot { background: #f59e0b; }
.status-pill.down .status-dot { background: #ef4444; }
.status-pill.ok { color: #047857; }
.status-pill.degraded { color: #b45309; }
.status-pill.down { color: #b91c1c; }
.status-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; animation: statusPulse 2s ease-out infinite;
}
@keyframes statusPulse {
  0% { transform: scale(1); opacity: 0.65; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .status-dot::after { animation: none; } }

/* ── Hero ────────────────────────────────────────────────────── */
.p-hero {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 4.5rem 0 4rem;
  position: relative; overflow: hidden;
}
.p-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 4%, color-mix(in srgb, var(--accent) 13%, transparent) 0%, transparent 55%);
  pointer-events: none;
}
.p-hero-inner { position: relative; max-width: 780px; }
.p-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.p-eyebrow::before {
  content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 1px;
}
.p-hero h1 {
  font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800;
  color: var(--white); line-height: 1.02; text-transform: uppercase;
  letter-spacing: -0.005em; margin-bottom: 1.1rem;
}
.p-lede { font-size: 1.18rem; line-height: 1.65; color: var(--muted); margin-bottom: 1.1rem; }
.p-domain {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; color: var(--dim); margin-bottom: 2rem;
}
.p-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }


/* ── Hero media ──────────────────────────────────────────────── */
.p-hero-grid {
  position: relative; display: grid; grid-template-columns: 1fr 470px;
  gap: 3.5rem; align-items: center;
}
.p-hero-grid .p-hero-inner { max-width: none; }
.p-hero-media {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 70px -34px rgba(11,18,32,0.55);
  border: 1px solid var(--border);
}
.p-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Accent wash ties the photo to the product colour instead of leaving six
   unrelated stock images across the site. */
.p-hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--accent) 34%, transparent) 0%,
    transparent 52%,
    rgba(11,18,32,0.34) 100%);
}
.p-hero-tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--white);
}
.p-hero-tag::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
@media (max-width: 1080px) {
  .p-hero-grid { grid-template-columns: 1fr 380px; gap: 2.5rem; }
}
@media (max-width: 900px) {
  .p-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .p-hero-media { aspect-ratio: 16 / 9; }
}

/* ── Section scaffolding ─────────────────────────────────────── */
section { padding: 4.5rem 0; }
.sec-head { max-width: 720px; margin-bottom: 2.5rem; }
.sec-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.7rem;
}
h2 {
  font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800;
  color: var(--white); line-height: 1.1; text-transform: uppercase; margin-bottom: 0.8rem;
}
h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.sec-sub { font-size: 1.02rem; color: var(--muted); }
.alt { background: var(--card); border-block: 1px solid var(--border); }

/* ── Capability grid ─────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.cap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.6rem 1.6rem 1.7rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.alt .cap { background: var(--card-hi); }
.cap:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 16px 34px -20px rgba(11,18,32,0.3);
}
.cap-icon {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.cap h3 { margin-bottom: 0.45rem; }
.cap p { font-size: 14.5px; color: var(--muted); }

/* ── Detail list ─────────────────────────────────────────────── */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.dlist { list-style: none; }
.dlist li { padding: 0.95rem 0; border-bottom: 1px solid var(--border); }
.dlist li:last-child { border-bottom: none; }
.dlist strong { display: block; color: var(--white); font-size: 15.5px; font-weight: 700; margin-bottom: 2px; }
.dlist span { font-size: 14.5px; color: var(--muted); }

/* ── Capability grid (was a spec table; a data grid reads as a spreadsheet
      and the mixed prose/chip rows never looked deliberate) ──────── */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.spec-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem 1.5rem 1.6rem;
  border-top: 3px solid var(--accent);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.alt .spec-card { background: var(--card); }
.spec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -22px rgba(11,18,32,0.3);
}
.spec-card h3 {
  font-size: 1.15rem; margin-bottom: 0.15rem;
  display: flex; align-items: center; gap: 9px;
}
.spec-card .count {
  font-family: var(--body); font-size: 11px; font-weight: 700;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent);
  border-radius: 999px; padding: 2px 8px; letter-spacing: 0.03em;
}
.spec-items { list-style: none; margin-top: 0.9rem; }
.spec-items li {
  position: relative; padding: 6px 0 6px 22px;
  font-size: 14.5px; line-height: 1.45; color: var(--muted);
}
.spec-items li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent); opacity: 0.55;
}
.spec-items li strong { color: var(--white); font-weight: 600; }

@media (max-width: 980px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .specs { grid-template-columns: 1fr; } }

/* ── CTA band ────────────────────────────────────────────────── */
.cta {
  background: var(--white);
  background-image: linear-gradient(135deg, #0b1220 0%, #14213d 55%, color-mix(in srgb, var(--accent) 55%, #14213d) 100%);
  border-radius: var(--r-lg); padding: 3.2rem 2.5rem; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #c3d0e6; max-width: 560px; margin: 0 auto 1.7rem; }
.cta .btn-primary { background: #fff; color: var(--white); }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }

/* ── Other products ──────────────────────────────────────────── */
.xprod {
  display: flex; align-items: center; gap: 12px; padding: 1rem 1.2rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.xprod:hover { border-color: var(--accent); transform: translateY(-2px); }
.xprod-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.xprod-name { font-weight: 700; color: var(--white); font-size: 14.5px; }
.xprod-sub { font-size: 12.5px; color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────────── */
footer { background: var(--card); border-top: 1px solid var(--border); padding: 2.5rem 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--accent); }
.foot-note { font-size: 13px; color: var(--dim); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { display: none; }
}
@media (max-width: 700px) {
  .container { padding: 0 1.25rem; }
  .nav-inner { padding: 0.75rem 1.25rem; }
  .status-pill { display: none; }
  section { padding: 3rem 0; }
  .p-hero { padding: 3rem 0 2.75rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; }
  .spec-k { border-right: none; border-bottom: 1px solid var(--border); }
  .cta { padding: 2.2rem 1.4rem; }
}
