:root {
  --ink: #f7f3ea;
  --muted: #c9d0c6;
  --soft: #f4efe4;
  --paper: #fffaf0;
  --paper-ink: #16130d;
  --bg: #090d0b;
  --panel: rgba(18, 24, 19, 0.88);
  --panel-strong: rgba(25, 34, 27, 0.96);
  --line: rgba(247, 243, 234, 0.18);
  --wood: #c48a43;
  --gold: #f0c35b;
  --green: #6bbf59;
  --steel: #9eb6ba;
  --ember: #e16f3d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(9, 13, 11, 0.9), rgba(9, 13, 11, 1)),
    radial-gradient(circle at 12% 0%, rgba(240, 195, 91, 0.13), transparent 34rem),
    radial-gradient(circle at 92% 18%, rgba(107, 191, 89, 0.12), transparent 30rem),
    #090d0b;
  overflow-x: hidden;
}

body.intro-active {
  overflow: hidden;
}

body.intro-active .progressbar,
body.intro-active .header-alert,
body.intro-active .top,
body.intro-active main,
body.intro-active .install-banner,
body.intro-active .floating-call,
body.intro-active .ops-console,
body.intro-active .footer {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  filter: blur(12px);
}

body.intro-complete .top,
body.intro-complete main,
body.intro-complete .header-alert {
  animation: appSurfaceOnline 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.72'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.industrial-living-field {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

.cursor-glow {
  position: fixed;
  z-index: 130;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(240, 195, 91, 0.2), rgba(107, 191, 89, 0.08) 42%, transparent 68%);
  mix-blend-mode: screen;
  transition: opacity 180ms ease;
}

.cursor-glow.active {
  opacity: 1;
}

.text-shimmer {
  color: var(--ink);
  background: linear-gradient(90deg, #fff6d7, #f0c35b, #9fcb8c, #fff6d7);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: empireTextShimmer 6s linear infinite;
}

.app-intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(26px, 5vw, 72px);
  color: var(--ink);
  background: #030403;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 760ms cubic-bezier(0.16, 1, 0.3, 1), visibility 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.app-intro[hidden] {
  display: none;
}

.app-intro.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-intro::before,
.app-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-intro::before {
  z-index: 1;
  opacity: 0.58;
  background:
    linear-gradient(115deg, rgba(240, 195, 91, 0.12), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 74px);
  mask-image: linear-gradient(90deg, #000, transparent 72%);
  animation: introRailDrift 2.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.app-intro::after {
  z-index: 4;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.75'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: blur(4px) saturate(1.14) contrast(1.14) brightness(0.62);
  transform: scale(1.14);
  animation: introVideoBloom 2.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-vignette,
.intro-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-vignette {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 4, 3, 0.96), rgba(3, 4, 3, 0.78) 42%, rgba(3, 4, 3, 0.5) 72%),
    radial-gradient(circle at 20% 68%, rgba(240, 195, 91, 0.42), transparent 34rem),
    radial-gradient(circle at 78% 30%, rgba(107, 191, 89, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(3, 4, 3, 0.12), rgba(3, 4, 3, 0.92));
}

.intro-scan {
  z-index: 3;
  opacity: 0.48;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 195, 91, 0.12) 1px, transparent 1px),
    linear-gradient(105deg, transparent 0 44%, rgba(240, 195, 91, 0.42) 49%, transparent 54% 100%);
  background-size: 42px 42px, 42px 42px, 220% 100%;
  mix-blend-mode: screen;
  animation: introScanPass 2.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-yard-grid {
  position: absolute;
  inset: auto -10vw -24vh -10vw;
  z-index: 2;
  height: 58vh;
  pointer-events: none;
  opacity: 0.42;
  background:
    linear-gradient(rgba(240, 195, 91, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 191, 89, 0.22) 1px, transparent 1px);
  background-size: 88px 54px;
  transform: perspective(560px) rotateX(64deg) translateY(14vh);
  transform-origin: bottom center;
  animation: introGridPush 2.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-stage {
  position: relative;
  z-index: 5;
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 74px);
}

.intro-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(240px, 42vw, 520px);
}

.intro-yard-system {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 11%;
  width: min(420px, 78vw);
  height: 168px;
  transform: translateX(-50%) perspective(720px) rotateX(58deg) rotateZ(-7deg);
  transform-origin: center bottom;
}

.intro-yard-system span {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 24px;
  border: 1px solid rgba(255, 236, 170, 0.18);
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(85, 49, 22, 0.9), rgba(215, 154, 68, 0.92), rgba(95, 58, 26, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 58px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translate3d(-42px, -22px, 0) scaleX(0.72);
  animation: introPalletLoad 2.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-yard-system span:nth-child(1) {
  bottom: 0;
}

.intro-yard-system span:nth-child(2) {
  bottom: 28px;
  left: 14%;
  right: 6%;
  animation-delay: 120ms;
}

.intro-yard-system span:nth-child(3) {
  bottom: 56px;
  left: 6%;
  right: 14%;
  animation-delay: 220ms;
}

.intro-yard-system span:nth-child(4) {
  bottom: 84px;
  left: 16%;
  right: 8%;
  animation-delay: 320ms;
}

.intro-yard-system span:nth-child(5) {
  bottom: 112px;
  left: 8%;
  right: 18%;
  animation-delay: 420ms;
}

.intro-logo {
  position: relative;
  z-index: 3;
  width: min(440px, 78vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 32px 54px rgba(0, 0, 0, 0.86)) drop-shadow(0 0 38px rgba(240, 195, 91, 0.34));
  transform-origin: center;
  animation: introLogoSummon 2.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-route-line {
  position: absolute;
  z-index: 2;
  inset: 19% 7% 16%;
  border-bottom: 2px solid rgba(107, 191, 89, 0.26);
  border-left: 2px solid rgba(240, 195, 91, 0.24);
  border-radius: 0 0 0 38%;
  opacity: 0;
  transform: skewX(-12deg);
  animation: introRouteIgnite 2.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-route-line span {
  position: absolute;
  right: -8px;
  bottom: -7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 28px rgba(107, 191, 89, 0.9);
}

.intro-pulse {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(240, 195, 91, 0.22);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.72);
  box-shadow:
    0 0 80px rgba(240, 195, 91, 0.18),
    inset 0 0 90px rgba(107, 191, 89, 0.1);
  animation: introPulse 2.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-copy {
  max-width: 620px;
  opacity: 0;
  transform: translateY(22px);
  animation: introCopyRise 2.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-copy span {
  color: #f8dc84;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-copy h2 {
  margin-top: 10px;
  font-size: clamp(54px, 10vw, 122px);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.72);
}

.intro-copy p {
  width: min(560px, 100%);
  margin: 14px 0 0;
  color: #f4edd8;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.48;
}

.intro-telemetry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(520px, 100%);
  margin-top: 24px;
}

.intro-telemetry b {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 195, 91, 0.24);
  background: rgba(3, 4, 3, 0.34);
  color: #f9e7aa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  animation: introTelemetry 2.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-telemetry b:nth-child(2) {
  animation-delay: 120ms;
}

.intro-telemetry b:nth-child(3) {
  animation-delay: 240ms;
}

.intro-telemetry b:nth-child(4) {
  animation-delay: 360ms;
}

.intro-meter {
  width: min(440px, 100%);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.intro-meter span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--green), var(--steel));
  box-shadow: 0 0 28px rgba(240, 195, 91, 0.44);
  animation: introMeter 2.6s linear both;
}

.intro-enter {
  justify-self: start;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(240, 195, 91, 0.38);
  border-radius: 4px;
  color: #f9e7aa;
  background: rgba(3, 4, 3, 0.36);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(10px);
  cursor: pointer;
  animation: introEnterRise 2.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-enter:hover {
  border-color: rgba(107, 191, 89, 0.7);
  color: #fff8da;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: rgba(9, 13, 11, 0.95);
  border-left: 1px solid rgba(240, 195, 91, 0.18);
}

::-webkit-scrollbar-thumb {
  border: 3px solid rgba(9, 13, 11, 0.95);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--green), var(--steel));
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.22);
}

.wrap {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.progressbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--wood), var(--gold), var(--green), var(--steel));
  box-shadow: 0 0 24px rgba(240, 195, 91, 0.45);
}

.neon-motion-chrome .progressbar {
  background: linear-gradient(90deg, var(--gold), var(--green), var(--steel), var(--gold));
}

.neon-motion-chrome .btn:hover,
.neon-magnetic:hover {
  box-shadow: 0 18px 44px rgba(240, 195, 91, 0.22);
}

.neon-gradient-text {
  color: var(--ink);
  background: linear-gradient(90deg, #fff6d7, #f0c35b, #9fcb8c, #fff6d7);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.neon-glow-panel {
  box-shadow: 0 0 0 1px rgba(240, 195, 91, 0.2), 0 28px 82px rgba(0, 0, 0, 0.44);
}

.header-alert {
  position: relative;
  z-index: 80;
  padding: 9px 18px;
  text-align: center;
  color: #1b1408;
  background: linear-gradient(90deg, #f2d37a, #dba052, #8ecf70);
  font-size: 13px;
  font-weight: 850;
}

.header-alert a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(9, 13, 11, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.top .nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.logo {
  width: 214px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.45));
}

.top .logo {
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter:
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 12px rgba(240, 195, 91, 0.26));
  transform-origin: center;
  animation: headerLogoFloatPulse 4.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  will-change: transform, filter;
}

.top .logo:hover {
  filter:
    drop-shadow(0 16px 28px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 18px rgba(240, 195, 91, 0.42))
    drop-shadow(0 0 26px rgba(107, 191, 89, 0.18));
}

.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.links a,
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, background 180ms ease;
}

.links a:hover,
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 195, 91, 0.7);
  background: rgba(255, 255, 255, 0.1);
}

.btn.primary,
.links .quote {
  border: 0;
  color: #151007;
  background: linear-gradient(135deg, #f4d873, #d9963d);
  box-shadow: 0 14px 38px rgba(196, 138, 67, 0.32);
}

.btn.green {
  border: 0;
  color: #071008;
  background: linear-gradient(135deg, #b8f08d, #5cb765);
}

.btn.dark {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.35);
}

.hamb {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 124px);
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-media video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media video {
  opacity: 1;
  transform: scale(1.01);
  filter: saturate(1.08) contrast(1.06) brightness(0.9);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 8, 6, 0.88), rgba(5, 8, 6, 0.58) 46%, rgba(5, 8, 6, 0.25)),
    linear-gradient(180deg, rgba(5, 8, 6, 0.25), rgba(5, 8, 6, 0.96));
}

.hero-inner {
  padding: 84px 0 56px;
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f8dc84;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.badge {
  border: 1px solid rgba(240, 195, 91, 0.42);
  border-radius: 999px;
  padding: 7px 10px;
  color: #ffe9a3;
  background: rgba(240, 195, 91, 0.12);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, Times, serif;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-top: 14px;
  font-size: 84px;
}

h2 {
  font-size: 56px;
}

h3 {
  font-size: 28px;
}

p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 18px;
}

.hero-copy p {
  width: min(650px, 100%);
  margin: 18px 0 0;
  color: #e3eadf;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 64px;
}

.dock-tile {
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(10, 16, 12, 0.72);
  backdrop-filter: blur(12px);
}

.dock-tile strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.dock-tile span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

section {
  padding: 96px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: end;
  gap: 34px;
  margin-bottom: 30px;
}

.section-head p {
  margin: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card,
.service-card,
.panel,
.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.card::before,
.service-card::before,
.panel::before,
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background: linear-gradient(135deg, rgba(240, 195, 91, 0.1), transparent 34%, rgba(107, 191, 89, 0.08));
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.card,
.panel,
.hero-card {
  padding: 24px;
}

.service-card {
  overflow: hidden;
  min-height: 100%;
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  filter: saturate(1.08) contrast(1.04);
  transition: transform 680ms cubic-bezier(0.16, 1, 0.3, 1), filter 680ms ease;
}

.service-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.18) contrast(1.08);
}

.service-card-body {
  padding: 20px;
}

.service-card h3,
.card h3 {
  font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Arial, sans-serif;
  line-height: 1.15;
  font-size: 22px;
}

.service-card p,
.card p {
  font-size: 15px;
}

.service {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card img.logo {
  width: 100%;
  height: auto;
}

.calculator {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.calc-output {
  margin-top: 12px;
}

.visual-block {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(240, 195, 91, 0.2), rgba(107, 191, 89, 0.12)),
    url("/assets/media/pallet-rows-hero.png") center / cover;
}

.quick {
  position: sticky;
  top: 82px;
  z-index: 70;
  border-block: 1px solid var(--line);
  background: rgba(13, 19, 15, 0.94);
  backdrop-filter: blur(16px);
  padding: 12px 0;
}

.quick form {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr auto;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 14px 13px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.32);
  outline: none;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

label {
  display: grid;
  gap: 8px;
  color: #f4e9cb;
  font-size: 13px;
  font-weight: 850;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 28px;
  align-items: center;
}

.gallery-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.media-stack {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 14px;
}

.media-stack img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.media-stack img:first-child {
  min-height: 410px;
}

.route-board {
  display: grid;
  gap: 12px;
}

.route-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.route-row b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  color: #171006;
  background: linear-gradient(135deg, var(--gold), var(--wood));
}

.route-row p {
  margin: 5px 0 0;
  font-size: 15px;
}

.qr-lockup {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.qr-lockup img,
.qr-code {
  width: 170px;
  height: 170px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--paper);
}

.preview-strip {
  background:
    linear-gradient(135deg, rgba(240, 195, 91, 0.15), rgba(107, 191, 89, 0.09)),
    rgba(255, 255, 255, 0.04);
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.metric {
  min-height: 118px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
}

.metric strong {
  display: block;
  color: var(--gold);
  font-size: 28px;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(680px, calc(100vh - 94px));
  display: grid;
  align-items: center;
  padding: 96px 0 64px;
  background:
    linear-gradient(90deg, rgba(7, 10, 8, 0.94), rgba(7, 10, 8, 0.74) 48%, rgba(7, 10, 8, 0.38)),
    url("/assets/media/pallet-rows-hero.png") center / cover;
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-hero::before {
  opacity: 0.36;
  background:
    linear-gradient(rgba(240, 195, 91, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 191, 89, 0.1) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.page-hero::after {
  background: linear-gradient(180deg, transparent 62%, var(--bg));
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero p {
  width: min(720px, 100%);
}

.page-hero .hero-card {
  border-color: rgba(240, 195, 91, 0.25);
  background: rgba(7, 10, 8, 0.72);
  backdrop-filter: blur(14px);
}

.page-hero .hero-card img.logo {
  filter: drop-shadow(0 24px 52px rgba(0, 0, 0, 0.72));
}

.route-map {
  min-height: 320px;
  border: 1px solid rgba(240, 195, 91, 0.2);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 26%, rgba(240, 195, 91, 0.36), transparent 14px),
    radial-gradient(circle at 78% 34%, rgba(107, 191, 89, 0.3), transparent 18px),
    radial-gradient(circle at 55% 72%, rgba(158, 182, 186, 0.28), transparent 16px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.route-map::before {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px dashed rgba(240, 195, 91, 0.38);
  border-radius: inherit;
  transform: skewY(-7deg);
}

.formgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full,
.wide {
  grid-column: 1 / -1;
}

.notice,
.form-result {
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 15px 16px;
  color: #f5edd9;
  background: rgba(240, 195, 91, 0.1);
}

.form-result:empty {
  display: none;
}

.table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.cell {
  padding: 15px;
  color: var(--muted);
}

.cell:first-child {
  color: var(--ink);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.055);
}

.install-banner {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 110;
  display: none;
  max-width: 340px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.install-banner.active {
  display: grid;
  gap: 10px;
}

.floating-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: flex;
  gap: 10px;
}

.ops-console {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(240, 195, 91, 0.22);
  border-radius: 999px;
  background: rgba(8, 11, 9, 0.84);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ops-console.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ops-console-label {
  padding: 0 8px 0 10px;
  color: #f8dc84;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.ops-console a {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 900;
}

.ops-console a:hover {
  border-color: rgba(107, 191, 89, 0.64);
  background: rgba(107, 191, 89, 0.13);
}

.footer {
  padding: 54px 0;
  border-top: 1px solid var(--line);
  background: #080b09;
}

.footer .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible,
.motion-ready [data-reveal],
.motion-lite [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

@keyframes empireTextShimmer {
  to {
    background-position: -220% 0;
  }
}

@keyframes appSurfaceOnline {
  0% {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes introRailDrift {
  0% {
    opacity: 0;
    transform: translateX(-5%);
  }

  28%,
  100% {
    opacity: 0.58;
    transform: translateX(0);
  }
}

@keyframes introVideoBloom {
  0% {
    opacity: 0;
    transform: scale(1.22);
    filter: blur(14px) saturate(0.82) contrast(1.2) brightness(0.28);
  }

  18% {
    opacity: 0.22;
  }

  42% {
    opacity: 0.5;
  }

  100% {
    opacity: 0.46;
    transform: scale(1.12);
    filter: blur(8px) saturate(1.18) contrast(1.12) brightness(0.56);
  }
}

@keyframes introPalletLoad {
  0% {
    opacity: 0;
    transform: translate3d(-46px, -28px, 0) scaleX(0.66);
    filter: blur(4px);
  }

  38% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scaleX(1);
    filter: blur(0);
  }

  100% {
    opacity: 0.86;
    transform: translate3d(0, 0, 0) scaleX(1);
    filter: blur(0);
  }
}

@keyframes introRouteIgnite {
  0%,
  24% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }

  56% {
    opacity: 0.92;
    clip-path: inset(0 0 0 0);
  }

  100% {
    opacity: 0.58;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes introGridPush {
  0% {
    opacity: 0;
    transform: perspective(560px) rotateX(64deg) translateY(24vh);
  }

  34% {
    opacity: 0.48;
  }

  100% {
    opacity: 0.34;
    transform: perspective(560px) rotateX(64deg) translateY(6vh);
  }
}

@keyframes introScanPass {
  0% {
    opacity: 0;
    background-position: 0 0, 0 0, 130% 0;
  }

  28% {
    opacity: 0.5;
  }

  100% {
    opacity: 0.32;
    background-position: 0 0, 0 0, -40% 0;
  }
}

@keyframes introLogoSummon {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.72) rotate(-4deg);
    clip-path: inset(0 0 100% 0);
  }

  18% {
    opacity: 0.72;
    clip-path: inset(0 0 46% 0);
  }

  46% {
    opacity: 1;
    transform: translateY(0) scale(1.08) rotate(0);
    clip-path: inset(0 0 0 0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes introPulse {
  0%,
  20% {
    opacity: 0;
    transform: scale(0.58);
  }

  46% {
    opacity: 0.72;
    transform: scale(1.04);
  }

  100% {
    opacity: 0.28;
    transform: scale(1.22);
  }
}

@keyframes introCopyRise {
  0%,
  18% {
    opacity: 0;
    transform: translateY(22px);
  }

  36%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introTelemetry {
  0%,
  26% {
    opacity: 0;
    transform: translateY(12px);
  }

  48%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introMeter {
  to {
    transform: scaleX(1);
  }
}

@keyframes introEnterRise {
  0%,
  72% {
    opacity: 0;
    transform: translateY(10px);
  }

  86%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerLogoFloatPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter:
      drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5))
      drop-shadow(0 0 10px rgba(240, 195, 91, 0.22));
  }

  45% {
    transform: translateY(-4px) scale(1.018);
    filter:
      drop-shadow(0 18px 30px rgba(0, 0, 0, 0.52))
      drop-shadow(0 0 18px rgba(240, 195, 91, 0.36))
      drop-shadow(0 0 26px rgba(107, 191, 89, 0.14));
  }
}

.scan-body .hero,
.preview-body .hero {
  min-height: calc(100vh - 124px);
}

.scan-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.app-shell-note {
  max-width: 760px;
}

@media (max-width: 980px) {
  .wrap {
    width: min(100% - 32px, var(--max));
  }

  .hamb {
    display: inline-flex;
  }

  .links {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: none;
    grid-template-columns: 1fr;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(9, 13, 11, 0.98);
    box-shadow: var(--shadow);
  }

  body.menu-open .links {
    display: grid;
  }

  .links a {
    justify-content: flex-start;
    width: 100%;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 38px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 70px 0 34px;
  }

  .hero-dock,
  .cols2,
  .cols3,
  .cols4,
  .section-head,
  .split,
  .gallery-band,
  .media-stack,
  .preview-metrics,
  .footer .wrap,
  .scan-actions {
    grid-template-columns: 1fr;
  }

  .quick {
    position: static;
  }

  .quick form,
  .formgrid {
    grid-template-columns: 1fr;
  }

  .qr-lockup {
    grid-template-columns: 1fr;
  }

  .floating-call {
    display: none;
  }

  .ops-console {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
    border-radius: var(--radius);
  }

  .ops-console-label {
    display: none;
  }

  .ops-console a {
    flex: 1;
  }

  .install-banner {
    left: 12px;
    right: 12px;
    bottom: 70px;
    max-width: none;
  }

  .app-intro {
    padding: 24px 18px 34px;
    place-items: center;
  }

  .intro-stage {
    grid-template-columns: 1fr;
    gap: 10px;
    align-content: center;
  }

  .intro-mark {
    min-height: 250px;
  }

  .intro-video {
    object-position: 56% center;
  }

  .intro-copy h2 {
    font-size: clamp(46px, 16vw, 72px);
  }

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

@media (max-width: 560px) {
  .header-alert {
    font-size: 12px;
  }

  .nav {
    min-height: 74px;
  }

  .logo {
    width: 178px;
    height: 52px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  p,
  .hero-copy p {
    font-size: 16px;
  }

  section {
    padding: 68px 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .dock-tile {
    min-height: auto;
  }

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

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

  .industrial-living-field {
    opacity: 0.42;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .industrial-living-field,
  .cursor-glow {
    display: none;
  }

  .text-shimmer {
    animation: none;
  }

  .top .logo {
    animation: none;
    transform: none;
  }

  body.intro-active {
    overflow: hidden;
  }

  body.intro-active .progressbar,
  body.intro-active .header-alert,
  body.intro-active .top,
  body.intro-active main,
  body.intro-active .install-banner,
  body.intro-active .floating-call,
  body.intro-active .ops-console,
  body.intro-active .footer {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}
