/* =====================================================================
   logiqon — highway redesign (real photo hero)
   Grounded asphalt palette, single warm accent, calm + clean.
   Vanilla CSS, no build step.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #0c0d11;
  --bg-2:      #101216;
  --bg-3:      #14161b;
  --surface:   rgba(18, 20, 26, 0.82);
  --surface-2: rgba(24, 27, 33, 0.86);
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.16);

  --text:      #f1f3f5;
  --muted:     #9aa2ad;
  --muted-2:   #6b727d;

  --accent:        #f2a035;   /* warm amber — used sparingly */
  --accent-strong: #e2842a;
  --accent-soft:   rgba(242, 160, 53, 0.12);

  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.container { width: min(100% - 44px, var(--maxw)); margin-inline: auto; }

/* ---------- Global video background (fixed, always visible) ---------- */
.site-bg { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; background: #0a0b0e; }
.site-bg__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transform-origin: 50% 42%; will-change: transform;
}
.site-bg__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(9,10,13,0.84) 0%, rgba(9,10,13,0.58) 42%, rgba(9,10,13,0.40) 100%),
    linear-gradient(180deg, rgba(9,10,13,0.30) 0%, rgba(9,10,13,0.48) 55%, rgba(9,10,13,0.72) 100%);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent); z-index: 100;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 24px;
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  border-radius: 10px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.2s ease;
  will-change: transform;
}
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--sm { --pad-y: 10px; --pad-x: 16px; font-size: 14px; }
.btn--lg { --pad-y: 16px; --pad-x: 30px; font-size: 16px; }

.btn--primary { color: #1a1206; background: var(--accent); }
.btn--primary:hover { background: var(--accent-strong); }

.btn--ghost { color: var(--text); background: rgba(12,13,17,0.4); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--text); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 18px 0;
  transition: padding 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 11px 0; background: rgba(12, 13, 17, 0.85);
  backdrop-filter: blur(14px); border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -0.4px; }
.brand__mark { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-2); }
.brand__dot { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
.brand__name { color: var(--text); }

.nav__links { display: flex; gap: 30px; }
.nav__link { position: relative; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s ease; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent); transition: width 0.3s var(--ease); }
.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (real photo background) ---------- */
.hero {
  position: relative; min-height: 94vh; display: flex; align-items: center;
  padding: 150px 0 96px; overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; }
.hero__copy { max-width: 620px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text); padding: 7px 14px; border-radius: 8px;
  background: rgba(12,13,17,0.55); border: 1px solid var(--border-2); backdrop-filter: blur(4px);
}
.eyebrow__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s var(--ease) infinite; }

.hero__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.05; letter-spacing: -1.5px;
  margin: 22px 0 22px; text-shadow: 0 2px 26px rgba(0,0,0,0.55);
}
.grad-text { color: var(--accent); }

.hero__sub { font-size: clamp(1rem, 1.4vw, 1.18rem); color: #d7dde4; max-width: 540px; text-shadow: 0 1px 14px rgba(0,0,0,0.5); }
.hero__sub strong { color: #fff; font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }

.hero__trust { display: flex; flex-direction: column; gap: 11px; }
.hero__trust li { display: flex; align-items: center; gap: 11px; color: #d7dde4; font-size: 15px; text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
.hero__trust .ico { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* scroll cue */
.hero__scroll {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--accent); animation: scrollcue 2s ease-in-out infinite; }

/* ---------- Stats ---------- */
.stats { padding: 24px 0 72px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--accent); }
.stat__num { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 3.2vw, 2.7rem); line-height: 1; color: var(--text); }
.stat__label { display: block; margin-top: 11px; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Section ---------- */
.section { padding: 92px 0; position: relative; }
.section--alt { background: rgba(12, 14, 18, 0.62); border-block: 1px solid var(--border); }

.section__head { max-width: 680px; margin-bottom: 52px; }
.section__index { display: inline-block; font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 3px; color: var(--accent); margin-bottom: 16px; }
.section__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -1px; line-height: 1.12; text-shadow: 0 2px 22px rgba(0,0,0,0.55); }
.section__lead { margin-top: 15px; color: #c4ccd5; font-size: clamp(1rem, 1.3vw, 1.12rem); text-shadow: 0 1px 12px rgba(0,0,0,0.5); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform 0.3s var(--ease), border-color 0.3s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.card__icon { width: 48px; height: 48px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px; background: var(--accent-soft); color: var(--accent); }
.card__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-family: var(--font-head); font-weight: 600; font-size: 1.16rem; margin-bottom: 9px; }
.card__text { color: var(--muted); font-size: 15px; }
.card__tag { display: inline-block; margin-top: 16px; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: 0.5px; color: var(--accent); padding: 4px 10px; border-radius: 6px; background: var(--accent-soft); }

/* ---------- Use cases ---------- */
.usecases { display: grid; gap: 16px; }
.usecase {
  display: grid; grid-template-columns: 260px 1fr; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.usecase:nth-child(even) { grid-template-columns: 1fr 260px; }
.usecase:nth-child(even) .usecase__media { order: 2; border-right: 0; border-left: 1px solid var(--border); }
.usecase:hover { transform: translateY(-3px); border-color: var(--border-2); }

.usecase__media {
  position: relative; min-height: 190px; border-right: 1px solid var(--border);
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, #181b21, #101216);
  background-size: cover; background-position: center;
}
.usecase__media::before { content: ""; position: absolute; inset: 0; opacity: 0.5; background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 22px); }
.usecase__num { position: relative; z-index: 2; font-family: var(--font-head); font-weight: 700; font-size: 4.4rem; color: transparent; -webkit-text-stroke: 1.4px rgba(242,160,53,0.55); }
.usecase__body { padding: 32px 34px; display: flex; flex-direction: column; justify-content: center; }
.usecase__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 9px; }
.usecase__body p { color: var(--muted); }

/* Photo slots — drop files into /images and they layer in. */
.usecase__media[data-img="inventory"]  { background-image: linear-gradient(135deg, rgba(16,18,22,0.78), rgba(16,18,22,0.82)), url("../images/usecase-inventory.jpg"); }
.usecase__media[data-img="routes"]     { background-image: linear-gradient(135deg, rgba(16,18,22,0.78), rgba(16,18,22,0.82)), url("../images/usecase-routes.jpg"); }
.usecase__media[data-img="pricelists"] { background-image: linear-gradient(135deg, rgba(16,18,22,0.78), rgba(16,18,22,0.82)), url("../images/usecase-pricelists.jpg"); }
.usecase__media[data-img="hoai"]       { background-image: linear-gradient(135deg, rgba(16,18,22,0.78), rgba(16,18,22,0.82)), url("../images/usecase-hoai.jpg"); }
.usecase__media[data-img="rental"]     { background-image: linear-gradient(135deg, rgba(16,18,22,0.78), rgba(16,18,22,0.82)), url("../images/usecase-rental.jpg"); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform 0.3s var(--ease), border-color 0.3s ease; }
.step:hover { transform: translateY(-4px); border-color: var(--border-2); }
.step__num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; margin-bottom: 18px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(242,160,53,0.3); }
.step__title { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; margin-bottom: 9px; }
.step__body p { color: var(--muted); font-size: 15px; }

/* ---------- Team ---------- */
.member { display: flex; align-items: center; gap: 22px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform 0.3s var(--ease), border-color 0.3s ease; }
.member:hover { transform: translateY(-4px); border-color: var(--border-2); }
.member__avatar {
  flex: none; width: 78px; height: 78px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(242,160,53,0.3);
  background-size: cover; background-position: center;
}
.member__avatar[data-initials="D"] { background-image: var(--photo-d, none); }
.member__avatar[data-initials="L"] { background-image: var(--photo-l, none); }
.member__name { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; }
.member__role { color: var(--muted); font-size: 14px; margin: 3px 0 11px; }
.member__mail { display: inline-flex; color: var(--accent); font-weight: 500; font-size: 15px; border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.member__mail:hover { border-bottom-color: var(--accent); }

/* ---------- CTA ---------- */
.cta { padding: 104px 0 116px; }
.cta__inner { text-align: center; max-width: 760px; margin-inline: auto; padding: 60px 40px; border-radius: var(--radius-lg); position: relative; overflow: hidden; background: rgba(16,18,22,0.72); border: 1px solid var(--border); }
.cta__inner::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--accent) 0 26px, transparent 26px 52px); opacity: 0.7; }
.cta__inner .section__index { margin-bottom: 18px; }
.cta__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -1px; line-height: 1.1; }
.cta__sub { margin: 16px auto 30px; color: var(--muted); max-width: 520px; font-size: 1.06rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: rgba(11,12,16,0.78); }
.footer__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; margin-bottom: 38px; }
.footer__tag { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 260px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__h { font-family: var(--font-head); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.footer__col a { color: var(--muted); font-size: 15px; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 13px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .usecases .reveal:nth-child(2), .steps .reveal:nth-child(2), .stats__grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.cards .reveal:nth-child(3), .usecases .reveal:nth-child(3), .steps .reveal:nth-child(3), .stats__grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.usecases .reveal:nth-child(4), .stats__grid .reveal:nth-child(4) { transition-delay: 0.21s; }
.usecases .reveal:nth-child(5) { transition-delay: 0.28s; }

/* ---------- Keyframes ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes scrollcue { 0% { top: -50%; } 100% { top: 100%; } }
@keyframes lane { to { background-position-x: -72px; } }

/* ---------- Mobile nav panel ---------- */
.nav__panel {
  position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); z-index: 70;
  background: rgba(16,18,22,0.98); backdrop-filter: blur(16px); border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column; gap: 6px; padding: 92px 26px 26px;
}
.nav__panel.open { transform: none; }
.nav__panel a { font-family: var(--font-head); font-size: 1.25rem; padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.nav__panel .btn { margin-top: 16px; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { min-height: 88vh; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav .btn--primary { display: none; }
  .nav__toggle { display: flex; }
  .hero { padding-top: 120px; min-height: 86vh; }
  .hero__bg { background-position: center 45%; }
  .cards--2 { grid-template-columns: 1fr; }
  .usecase, .usecase:nth-child(even) { grid-template-columns: 1fr; }
  .usecase:nth-child(even) .usecase__media { order: 0; border-left: 0; }
  .usecase__media { border-right: 0; border-bottom: 1px solid var(--border); min-height: 140px; }
  .member { flex-direction: column; text-align: center; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .cta__inner { padding: 44px 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .site-bg__video { transform: scale(1.06) !important; }
}
