:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --panel-alt: rgba(255, 255, 255, 0.04);
  --text: #f1f5f9;
  --text-soft: #e2e8f0;
  --muted: #cbd5e1;
  --muted-soft: #94a3b8;
  --muted-deep: #64748b;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.15);
  --accent: #0ea5e9;
  --accent-soft: rgba(14, 165, 233, 0.14);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #f43f5e;
  --brand-tile-a: #2b2b2b;
  --brand-tile-b: #3a3a3a;
  --brand-silver: #d0d0d0;
  --brand-green: #67a889;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  --glow: 0 0 0 1px rgba(14, 165, 233, 0.06), 0 0 24px rgba(14, 165, 233, 0.05);
  --radius: 24px;
  --radius-sm: 16px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 22rem),
    radial-gradient(circle at 22% 8%, rgba(103, 168, 137, 0.05), transparent 16rem),
    linear-gradient(180deg, #020617 0%, #08101f 45%, #020617 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.05;
}

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 8vw, 4rem);
}

h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

h3 {
  font-size: 1.2rem;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav,
.footer-row,
.hero-grid,
.contact-stack,
.contact-panel {
  display: grid;
  gap: 2rem;
}

.nav {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.brand:hover,
.brand:active,
.brand:visited,
.brand:focus {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand:focus:not(:focus-visible) {
  outline: none;
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.35rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  overflow: visible;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand:hover .brand-mark,
.brand:active .brand-mark,
.brand:visited .brand-mark,
.brand:focus .brand-mark {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand-lockup {
  display: grid;
  gap: 0.1rem;
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-lockup span {
  color: var(--muted-soft);
  font-size: 0.85rem;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a,
.footer-links a {
  color: var(--muted-soft);
}

nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.hero {
  padding: 5rem 0 3.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
  gap: 2.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.lede {
  font-size: 1.12rem;
  max-width: 38rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.75rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #eaf7ff;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.2);
}

.button-primary:hover {
  background: #38bdf8;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
}

.stack {
  display: grid;
  gap: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
  padding-top: 0.15rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-meta span::before {
  content: "";
  flex: 0 0 auto;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(103, 168, 137, 0.1);
}

.hero-console {
  position: relative;
}

.console-window,
.overview-card,
.feature-card,
.contact-box {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(2, 6, 23, 0.88) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.console-window,
.overview-card,
.feature-card,
.contact-box {
  padding: 1.35rem;
}

.console-label-row,
.kpi-row {
  display: grid;
  gap: 0.85rem;
}

.console-label-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 1rem;
}

.console-label-row strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.console-label-row span {
  color: var(--muted-soft);
  font-size: 0.82rem;
}

.console-main {
  display: grid;
  gap: 1rem;
}

.console-media-stack {
  display: grid;
  gap: 1rem;
}

.kpi-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.kpi-card {
  display: grid;
  place-content: center;
  min-height: 5.5rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.kpi-card span {
  color: var(--muted-soft);
}

.kpi-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.2rem;
  font-family: "Space Grotesk", sans-serif;
}

.overview,
.feature-section,
.load-leveling,
.production-leveling,
.contact {
  padding: 4rem 0;
}

.operating-fit {
  padding: 4rem 0;
}

.section-heading {
  margin-bottom: 1.75rem;
}

.section-heading.narrow {
  max-width: 40rem;
}

.section-lede {
  max-width: 44rem;
  color: var(--muted-soft);
}

.section-lede-wide {
  max-width: none;
}

.overview-grid,
.feature-grid {
  display: grid;
  gap: 1rem;
}

.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-card {
  text-align: center;
}

.overview-card h3,
.feature-card h3 {
  font-size: 1.3rem;
}

.overview-icon {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin: 0 auto 1.15rem;
  color: var(--accent);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 0.9rem;
}

.overview-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.clarity-showcase {
  margin-top: 2.5rem;
}

.clarity-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.1rem;
}

.clarity-heading .eyebrow,
.clarity-heading h3 {
  margin: 0;
}

.clarity-heading h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.clarity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.clarity-card {
  display: grid;
  width: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(2, 6, 23, 0.88) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.clarity-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.34);
}

.clarity-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.25rem;
}

.clarity-card figure {
  height: 16rem;
  margin: 0;
  overflow: hidden;
  background: #111827;
  border-bottom: 1px solid var(--line);
}

.clarity-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.clarity-card > div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.15rem;
}

.clarity-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.clarity-card span {
  color: var(--muted-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.image-modal {
  width: min(94vw, 82rem);
  max-width: none;
  height: min(92vh, 62rem);
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: #020617;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.7);
}

.image-modal::backdrop {
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(8px);
}

.image-modal-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
}

.image-modal img {
  display: block;
  width: 100%;
  height: auto;
}

.image-modal-close {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--text);
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.image-modal-close:hover {
  background: #1e293b;
}

body:has(.image-modal[open]) {
  overflow: hidden;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.parts-tracking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.parts-tracking-copy {
  display: grid;
  gap: 0;
}

.parts-tracking-copy article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.parts-tracking-copy article:first-child {
  padding-top: 0;
}

.parts-tracking-copy article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.parts-tracking-copy h3 {
  margin-bottom: 0.45rem;
  font-size: 1.25rem;
}

.parts-tracking-copy p {
  margin: 0;
  color: var(--muted-soft);
}

.feature-number {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 50%;
}

.parts-tracking-media {
  min-width: 0;
}

.parts-board-shot {
  width: 100%;
}

.parts-board-shot img {
  width: 100%;
  height: auto;
}

.load-leveling-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 2rem;
  align-items: center;
}

.load-leveling-shot img {
  width: 100%;
  height: auto;
}

.load-leveling-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.load-leveling-points article {
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(2, 6, 23, 0.88) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.load-leveling-points .feature-number {
  margin-bottom: 1rem;
}

.load-leveling-points h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.load-leveling-points p {
  margin: 0;
  color: var(--muted-soft);
}

.production-leveling-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 2rem;
  align-items: center;
}

.production-leveling-points {
  display: grid;
}

.production-leveling-points article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.production-leveling-points article:first-child {
  padding-top: 0;
}

.production-leveling-points article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.production-leveling-points h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.production-leveling-points p {
  margin: 0;
  color: var(--muted-soft);
}

.production-leveling-shot img {
  width: 100%;
  height: auto;
}

.feature-card {
  display: grid;
  gap: 0.9rem;
}

.feature-card-wide {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  align-items: start;
}

.feature-kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.feature-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  padding: 0.8rem 0.95rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.app-shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--glow);
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.app-shot-hero {
  max-height: 31rem;
}

.app-shot-hero img {
  height: 31rem;
  object-fit: cover;
  object-position: center top;
}

.feature-shot img {
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  object-position: top center;
}

.process-road {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.process-road::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: var(--accent);
  opacity: 0.7;
}

.process-road article {
  position: relative;
  padding-top: 4.25rem;
  text-align: center;
}

.process-road article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.16rem;
  right: -0.82rem;
  z-index: 2;
  width: 0.65rem;
  height: 0.65rem;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}

.process-node {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #dff7ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  background: #0f172a;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #020617, 0 0 24px rgba(14, 165, 233, 0.16);
  transform: translateX(-50%);
}

.process-road h3 {
  margin-bottom: 0.55rem;
  font-size: 1.3rem;
}

.process-road p {
  margin: 0;
  color: var(--muted-soft);
}

.section-cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.75rem;
}

.section-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-soft);
  font-weight: 600;
}

.section-cta a span {
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 180ms ease;
}

.section-cta a:hover {
  color: var(--text);
}

.section-cta a:hover span {
  transform: translateX(0.25rem);
}

.future-copy {
  margin-bottom: 0;
}

.contact-panel {
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.55fr);
  align-items: start;
  padding: 2.5rem 1.35rem 1.35rem;
  position: relative;
}

.contact-stack {
  position: relative;
  gap: 0;
}

.contact-figure {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  z-index: 1;
  width: min(100%, 25rem);
  margin: 0;
  pointer-events: none;
}

.contact-figure img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.28));
  object-position: bottom center;
}

.contact-panel > * {
  position: relative;
  z-index: 2;
}

.contact-panel > :first-child {
  max-width: 48rem;
  padding-right: 4rem;
}

.contact-box {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
  z-index: 3;
  align-self: end;
  margin-top: 8rem;
}

.contact-link {
  color: var(--muted-soft);
  font-weight: 600;
}

.contact-link:hover {
  color: var(--text);
}

.site-footer {
  padding: 1.75rem 0 3rem;
}

.footer-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-row p {
  margin: 0.4rem 0 0;
  color: var(--muted-soft);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 520ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 90ms;
}

.reveal:nth-child(3) {
  animation-delay: 160ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .overview-grid,
  .clarity-grid,
  .feature-grid,
  .feature-card-wide,
  .load-leveling-grid,
  .production-leveling-grid,
  .contact-panel,
  .footer-row {
    grid-template-columns: 1fr;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  nav {
    gap: 0.75rem;
  }

  .kpi-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .clarity-heading {
    display: grid;
    align-items: start;
  }

  .load-leveling-points {
    grid-template-columns: 1fr;
  }

  .process-road {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 1rem;
  }

  .process-road::before {
    top: 1.5rem;
    right: auto;
    bottom: 1.5rem;
    left: 2.45rem;
    width: 2px;
    height: auto;
    background: var(--accent);
  }

  .process-road article {
    min-height: 8.5rem;
    padding: 0 0 2rem 5rem;
    text-align: left;
  }

  .process-road article:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: 0.9rem;
    left: 2.13rem;
    transform: rotate(135deg);
  }

  .process-node {
    left: 0;
    transform: none;
  }

  .section-cta {
    justify-content: flex-start;
  }

  .contact-figure {
    right: 1rem;
    width: min(100%, 15rem);
    opacity: 0.9;
    bottom: -0.25rem;
  }

  .contact-panel > :first-child {
    padding-right: 0;
  }

  .contact-box {
    margin-top: 1rem;
  }
}

@media (max-width: 700px) {
  .parts-tracking-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2.3rem;
  }

  .shell {
    width: min(calc(100% - 1.25rem), var(--shell));
  }

  .site-header {
    position: static;
  }

  .nav,
  nav {
    gap: 0.7rem;
  }

  .brand-lockup span {
    font-size: 0.8rem;
  }

  .hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .console-window,
  .overview-card,
  .feature-card,
  .contact-box {
    padding: 1.15rem;
  }

  .button,
  .button-primary,
  .button-secondary {
    width: 100%;
  }
}
