:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --surface-border: rgba(19, 22, 27, 0.1);
  --text: #1e232b;
  --muted: #606872;
  --brand: #1d232c;
  --brand-2: #3c4654;
  --shadow: 0 10px 24px rgba(18, 22, 30, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #fdfdfc 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.custom-cursor-active,
body.custom-cursor-active * {
  cursor: none !important;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
  background: rgba(248, 248, 246, 0.96);
  border-bottom: 1px solid rgba(25, 29, 37, 0.1);
}

.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.72rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  justify-self: start;
  width: clamp(150px, 15vw, 190px);
  height: clamp(42px, 4vw, 52px);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-links a.is-active {
  color: var(--brand);
  font-weight: 700;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #121722;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(18, 23, 34, 0.24);
  color: var(--brand);
  background: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(18, 23, 34, 0.2);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  gap: 4px;
  flex-direction: column;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: #1d232c;
  border-radius: 2px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.3rem;
  align-items: center;
  padding: 4rem 0 2.4rem;
}

.eyebrow {
  margin: 0;
  color: #4c5d76;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  max-width: 14ch;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 55ch;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 0.74rem 1.08rem;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-ghost {
  border: 1px solid rgba(35, 44, 59, 0.28);
  color: var(--brand);
}

.hero-visual {
  display: grid;
  place-items: center;
  gap: 1rem;
}

.hero-media {
  position: relative;
  width: min(560px, 100%);
}

.hero-media-main {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(37, 45, 58, 0.14);
  box-shadow: 0 16px 32px rgba(24, 37, 58, 0.12);
}

.hero-media-float {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: min(56%, 300px);
  border-radius: 12px;
  border: 1px solid rgba(37, 45, 58, 0.14);
  box-shadow: 0 12px 26px rgba(24, 37, 58, 0.16);
  background: #fff;
}

.hero-stock-image {
  width: 100%;
  max-width: 560px;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(37, 45, 58, 0.14);
  box-shadow: 0 16px 34px rgba(24, 37, 58, 0.12);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0.2rem 0 1.9rem;
}

.metric-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1rem;
}

.metric-value {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 700;
}

.metric-label {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.products {
  padding: 1.2rem 0 1.2rem;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
}

.section-copy {
  color: var(--muted);
  margin: 0 0 1.4rem;
}

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

.product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.product-showcase-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 8px 20px rgba(24, 37, 58, 0.06);
}

.mini-gallery {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.mini-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(37, 45, 58, 0.12);
}

.product-showcase-stack {
  display: grid;
  gap: 1rem;
}

.products-simple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.product-simple-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(24, 37, 58, 0.06);
  overflow: hidden;
}

.product-simple-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(37, 45, 58, 0.12);
}

.product-simple-copy {
  padding: 1rem 1rem 1.4rem;
}

.product-simple-copy h3 {
  margin: 0 0 0.45rem;
}

.product-simple-copy p {
  margin: 0 0 0.55rem;
  color: var(--muted);
}

.product-simple-copy ul {
  margin: 0 0 1.2rem;
  padding-left: 1rem;
  color: #3a475e;
}

.product-simple-copy .btn {
  margin-top: 0.95rem;
}

.product-feature {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(24, 37, 58, 0.06);
}

.product-feature-inventory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.product-feature-io {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.product-feature-copy h3 {
  margin: 0.2rem 0 0.5rem;
}

.product-feature-copy p {
  margin: 0 0 0.6rem;
  color: var(--muted);
}

.product-feature-copy ul {
  margin: 0;
  padding-left: 1rem;
  color: #3a475e;
}

.feature-kicker {
  margin: 0;
  color: #4c5d76;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.inventory-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(110px, auto));
  gap: 0.55rem;
}

.inventory-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(37, 45, 58, 0.12);
}

.mosaic-large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.mosaic-small {
  grid-column: 2 / 3;
}

.io-carousel-strip {
  display: grid;
  gap: 0.45rem;
}

.io-carousel-strip img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(37, 45, 58, 0.12);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1.25rem;
  backdrop-filter: blur(2px);
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
  box-shadow: 0 8px 20px rgba(24, 37, 58, 0.06);
}

.product-card h3 {
  margin-top: 0;
}

.product-card p {
  color: var(--muted);
}

.product-card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: #3a475e;
}

.inline-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.services {
  padding: 1rem 0 1.6rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1.15rem;
  box-shadow: 0 8px 20px rgba(24, 37, 58, 0.06);
}

.service-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.06rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.showcase {
  padding: 1.2rem 0 2.8rem;
}

.showcase-block + .showcase-block {
  margin-top: 2.2rem;
}

.showcase-head h3 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
}

.showcase-head p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

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

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(37, 45, 58, 0.12);
  box-shadow: 0 8px 20px rgba(24, 37, 58, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-grid img:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 15px 32px rgba(24, 37, 58, 0.16);
}

.role-showcase,
.workflow-showcase {
  display: grid;
  gap: 1.8rem;
}

.role-showcase {
  gap: 2rem;
}

.role-block,
.workflow-step {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 0 0.8rem;
  box-shadow: none;
  border-bottom: 1px solid rgba(37, 45, 58, 0.1);
}

.role-showcase > .role-block:last-child,
.workflow-showcase > .workflow-step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.role-head h3,
.workflow-head h3 {
  margin: 0;
}

.role-head p {
  margin: 0.2rem 0 0.7rem;
  color: var(--muted);
}

.workflow-head span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4c5d76;
  font-weight: 700;
}

.workflow-head h3 {
  margin-top: 0.25rem;
}

.role-head,
.workflow-head {
  margin-bottom: 0.6rem;
}

.role-gallery,
.workflow-gallery {
  display: block;
}

.role-gallery img,
.workflow-gallery img {
  width: 100%;
  max-width: 100%;
  height: 360px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  border: 0;
}

.image-carousel {
  position: relative;
}

.image-carousel-viewport {
  overflow: hidden;
  border-radius: 0;
  background: var(--bg);
}

.image-carousel-track {
  display: flex;
  transition: transform 0.28s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
}

.image-carousel-controls {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.45rem;
  pointer-events: none;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #606872;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.carousel-btn:hover {
  background: #525a64;
}

.carousel-btn:active {
  transform: scale(0.96);
}

.about {
  padding: 1.6rem 0 3.2rem;
}

.about p {
  color: var(--muted);
  max-width: 62ch;
}

.about-stock-image {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(37, 45, 58, 0.14);
  box-shadow: 0 12px 26px rgba(24, 37, 58, 0.1);
}

.contact-section {
  padding: 2.2rem 0 3rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(24, 37, 58, 0.06);
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(25, 29, 37, 0.2);
  border-radius: 10px;
  padding: 0.62rem 0.7rem;
  font: inherit;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.about-copy .section-copy {
  margin-bottom: 1rem;
}

.site-footer {
  border-top: 1px solid rgba(37, 45, 58, 0.14);
  background: #f1f2ee;
}

.footer-grid {
  padding: 1.8rem 0 2.1rem;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 1rem;
}

.footer-grid h4 {
  margin: 0 0 0.45rem;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
  max-width: 30ch;
}

.footer-link {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--brand);
  text-decoration: none;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  z-index: -1;
}

.bg-glow-1 {
  width: 240px;
  height: 240px;
  top: -60px;
  right: 4%;
  background: rgba(77, 93, 119, 0.05);
  animation: drift 9s ease-in-out infinite;
}

.bg-glow-2 {
  width: 280px;
  height: 280px;
  left: -80px;
  bottom: 10%;
  background: rgba(108, 132, 160, 0.05);
  animation: drift 12s ease-in-out infinite reverse;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-3d {
  transform: perspective(1000px)
    rotateX(calc(var(--rx, 0deg) + var(--hx, 0deg)))
    rotateY(calc(var(--ry, 0deg) + var(--hy, 0deg)))
    translateZ(calc(var(--tz, 0px) + var(--tzh, 0px)));
  transition: transform 0.08s linear, box-shadow 0.2s ease;
  will-change: transform;
}

.scroll-3d.is-tilting {
  box-shadow: 0 18px 36px rgba(20, 30, 46, 0.18);
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(12px, 18px);
  }
}

.motion-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(29, 35, 44, 0.28);
  background: rgba(29, 35, 44, 0.08);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 100;
  transition: width 0.16s ease, height 0.16s ease, background 0.16s ease,
    border-color 0.16s ease;
}

.motion-cursor.is-hovering {
  width: 36px;
  height: 36px;
  background: rgba(29, 35, 44, 0.04);
  border-color: rgba(29, 35, 44, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .motion-cursor {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.8rem;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    position: relative;
    z-index: 41;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 22, 30, 0);
    pointer-events: none;
    transition: background 0.3s ease;
    z-index: 30;
  }

  .site-header.is-open .nav-backdrop {
    background: rgba(18, 22, 30, 0.45);
    pointer-events: auto;
  }

  .nav-links,
  .nav-actions {
    position: fixed;
    right: 0;
    width: min(82vw, 320px);
    background: #fff;
    margin: 0;
    box-sizing: border-box;
    border-left: 1px solid rgba(18, 23, 34, 0.1);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    visibility: hidden;
  }

  .nav-links {
    top: 0;
    padding: 5rem 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-height: calc(100vh - 7.5rem);
    overflow-y: auto;
    box-shadow: -16px 0 32px rgba(18, 22, 30, 0.12);
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.4rem 0;
  }

  .nav-actions {
    bottom: 0;
    padding: 1rem 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    border-top: 1px solid rgba(18, 23, 34, 0.1);
    box-shadow: -16px 0 32px rgba(18, 22, 30, 0.06);
  }

  .nav-actions a {
    width: 100%;
    justify-content: center;
  }

  .site-header.is-open .nav-links,
  .site-header.is-open .nav-actions {
    transform: translateX(0);
    visibility: visible;
  }

  body.nav-locked {
    overflow: hidden;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 4.5rem;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 1rem;
  }

  .hero-media-float {
    right: 8px;
    bottom: 8px;
  }

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

  .product-showcase-grid {
    grid-template-columns: 1fr;
  }

  .products-simple-grid {
    grid-template-columns: 1fr;
  }

  .product-feature-inventory,
  .product-feature-io {
    grid-template-columns: 1fr;
  }

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

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

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

  .role-gallery-three,
  .role-gallery-four,
  .workflow-gallery {
    gap: 0.6rem;
  }

  .role-gallery img,
  .workflow-gallery img {
    height: 300px;
  }

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

  .about-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-links {
    gap: 0.6rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .brand {
    width: clamp(145px, 35vw, 180px);
    height: clamp(38px, 9vw, 48px);
  }

  .brand-logo {
    width: 100%;
    height: 100%;
  }

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

  .gallery-grid img {
    height: auto;
  }

  .role-gallery,
  .workflow-gallery {
    display: block;
  }

  .role-gallery img,
  .workflow-gallery img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .nav-cta {
    padding: 0.48rem 0.9rem;
    border-radius: 9px;
    font-size: 0.8rem;
  }

  .nav-demo {
    padding: 0.48rem 0.82rem;
    border-radius: 9px;
    font-size: 0.78rem;
  }

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

@media (pointer: coarse) {
  .motion-cursor {
    display: none;
  }
}
