/* ================================================================
   GPSX — second generation of GPS Standard
   Brand: black block + safety yellow bar ("Committed to security.")
   black #0C0C0E · yellow #FFD100 · paper #F5F5F2 · steel #6E6E74
   ================================================================ */

:root {
  --black: #0c0c0e;
  --ink: #17171a;
  --steel: #6e6e74;
  --paper: #f5f5f2;
  --white: #ffffff;
  --yellow: #ffd100;
  --line: rgba(12, 12, 14, 0.1);
  --wrap: 1140px;
  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "Cabin", "Gill Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: #3c3c42;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; margin-bottom: 0.6em; }
h3 { font-size: 1.28rem; font-weight: 700; }

a { color: inherit; }

:focus-visible {
  outline: 2.5px solid var(--yellow);
  outline-offset: 3px;
}

::selection { background: var(--yellow); color: var(--black); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* eyebrow: mono label led by a yellow bar — the logo's offset-bar geometry */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 10px;
  background: var(--yellow);
  flex: none;
}
.eyebrow-dark { color: var(--paper); }

.lede { font-size: 1.18rem; max-width: 660px; margin-bottom: 2.6rem; }

.muted { color: var(--steel); }
/* headline accent: sits on a yellow bar, like the wordmark's STANDARD strip */
.accent { color: var(--ink); box-shadow: inset 0 -0.34em 0 var(--yellow); }

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--yellow);
}
.text-link:hover { box-shadow: inset 0 -1.2em 0 var(--yellow); }

/* ---------------- GPSX lockup ---------------- */

.lockup {
  display: inline-flex;
  align-items: flex-start;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
}
.lk-gps {
  background: var(--black);
  color: var(--white);
  padding: 0.34em 0.42em 0.3em;
  letter-spacing: 0.02em;
}
.lk-x {
  background: var(--yellow);
  color: var(--black);
  padding: 0.34em 0.38em 0.3em;
  transform: translateY(0.28em);
}
.lockup-nav { font-size: 1.05rem; }
.lockup-big { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 2rem; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0.9em 1.7em;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
}
.btn-yellow:hover {
  background: var(--black);
  color: var(--yellow);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(12, 12, 14, 0.25);
}

.btn-line {
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-line:hover { background: var(--ink); color: var(--paper); }

.btn-sm { font-size: 0.85rem; padding: 0.62em 1.2em; }

/* ---------------- nav ---------------- */
/* transparent over the hero image (white links); frosted paper after it */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(245, 245, 242, 0.8);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav.scrolled .nav-links a { color: #3c3c42; }
.nav.scrolled .nav-links a:hover { color: var(--black); }

/* ---------------- hero (full-page image) ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* legibility scrim: darker where the text and the nav sit */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(12, 12, 14, 0.55), rgba(12, 12, 14, 0) 22%),
    linear-gradient(105deg, rgba(12, 12, 14, 0.72) 0%, rgba(12, 12, 14, 0.45) 46%, rgba(12, 12, 14, 0.05) 78%),
    linear-gradient(rgba(12, 12, 14, 0) 62%, rgba(12, 12, 14, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 110px;
  padding-bottom: 72px;
}

.hero h1 { color: var(--white); max-width: 15ch; }
.hero .accent { color: var(--yellow); box-shadow: none; }

.eyebrow-hero { color: rgba(255, 255, 255, 0.92); }

.hero-sub {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 1.8rem 0 2.2rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero .btn-line { color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.hero .btn-line:hover { background: var(--white); color: var(--black); }

/* the perimeter line — signature. A detection pulse travels the line. */
.peri-line {
  position: relative;
  height: 3px;
  background: var(--ink);
  margin-top: 2.2rem;
  overflow: visible;
}
.hero .peri-line { background: rgba(255, 255, 255, 0.9); max-width: 640px; }
.peri-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 84px;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--yellow) 40%, var(--yellow));
  box-shadow: 0 0 18px 2px rgba(255, 209, 0, 0.55);
  animation: patrol 5.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes patrol {
  0%   { left: -84px; }
  50%  { left: 100%; }
  100% { left: -84px; }
}

/* ---------------- sections ---------------- */

.section { padding: 118px 0; }
.section-tight { padding: 94px 0; }
.section h2 { max-width: 24ch; }

/* heritage */

.story-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 72px;
  margin-top: 3rem;
  align-items: start;
}
.story-copy p { margin-bottom: 1.2em; }
.story-copy strong { color: var(--ink); }

.timeline { list-style: none; border-left: 3px solid var(--ink); }
.timeline li {
  position: relative;
  padding: 0 0 1.35rem 26px;
  display: flex;
  flex-direction: column;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 13px;
  height: 13px;
  background: var(--paper);
  border: 3px solid var(--ink);
}
.timeline .t-now::before { background: var(--yellow); border-color: var(--ink); }
.t-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.t-what { font-size: 0.95rem; }
.t-now .t-what { color: var(--ink); font-weight: 600; }

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 4rem;
  border-top: 3px solid var(--ink);
  padding-top: 1.6rem;
}
.stats li { display: flex; flex-direction: column; gap: 2px; }
.stats strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--ink);
}
.stats span { font-size: 0.9rem; color: var(--steel); }

/* pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 3rem;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 28px 36px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.pillar::before {
  content: "";
  display: block;
  width: 44px;
  height: 10px;
  background: var(--yellow);
  margin-bottom: 1.4rem;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(12, 12, 14, 0.1); }
.pillar h3 { margin-bottom: 0.7rem; }
.pillar p { font-size: 0.97rem; }

/* split */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split-media img {
  width: 100%;
  border-top: 4px solid var(--yellow);
  box-shadow: 0 22px 60px rgba(12, 12, 14, 0.16);
}
.split-copy p { margin-bottom: 1.2em; max-width: 52ch; }

/* spec list */

.spec-list {
  list-style: none;
  margin-top: 1.7rem;
  border-top: 2px solid var(--ink);
}
.spec-list li {
  display: flex;
  gap: 20px;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.spec-k {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  min-width: 118px;
  padding-top: 0.3em;
}
.spec-v { color: var(--ink); font-weight: 500; }

/* dark section */

.section-dark { background: var(--black); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(245, 245, 242, 0.72); }
.ref-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--yellow) !important;
}
.spec-list-dark { border-top-color: var(--yellow); }
.spec-list-dark li { border-bottom-color: rgba(245, 245, 242, 0.15); }
.spec-list-dark .spec-k { color: var(--yellow); }
.spec-list-dark .spec-v { color: var(--white); }

/* platform */

.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
  max-width: 980px;
}
.dev-item {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.dev-item strong { color: var(--ink); }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2.6rem;
  max-width: 860px;
}
.chips li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.5em 1em;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}
.chips li:hover { background: var(--ink); color: var(--yellow); }

/* cta */

.section-cta {
  padding: 130px 0;
  background:
    linear-gradient(rgba(255, 209, 0, 0.09), transparent 55%),
    var(--paper);
  text-align: center;
}
.cta-wrap { display: flex; flex-direction: column; align-items: center; }
.section-cta .lede { text-align: center; margin-inline: auto; }

/* footer */

.footer { background: var(--black); padding: 72px 0 48px; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-inner img { height: 64px; width: auto; }
.footer-payoff {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 10px; }
.footer-links a {
  color: rgba(245, 245, 242, 0.65);
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); }
.footer-fine { color: rgba(245, 245, 242, 0.35); font-size: 0.82rem; margin-top: 16px; }

/* ---------------- reveals ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-now { opacity: 0; animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.reveal-now:nth-child(2) { animation-delay: 0.08s; }
.reveal-now:nth-child(3) { animation-delay: 0.18s; }
.reveal-now:nth-child(4) { animation-delay: 0.26s; }
.reveal-now:nth-child(5) { animation-delay: 0.34s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 960px) {
  .story-grid, .split { grid-template-columns: 1fr; gap: 44px; }
  .section-dark .split { display: flex; flex-direction: column-reverse; }
  .pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .dev-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 84px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  /* keep the sensor post in frame on narrow crops; darken a bit more */
  .hero-bg { object-position: 68% center; }
  .hero-scrim {
    background:
      linear-gradient(rgba(12, 12, 14, 0.6), rgba(12, 12, 14, 0.15) 30%),
      linear-gradient(rgba(12, 12, 14, 0.35), rgba(12, 12, 14, 0.55));
  }
  .hero-content { padding-top: 96px; padding-bottom: 56px; }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .peri-pulse { animation: none; left: 20%; }
  .reveal, .reveal-now { opacity: 1; transform: none; transition: none; animation: none; }
  .btn, .pillar, .chips li { transition: none; }
}
