:root {
  --paper: #f7f8fb;
  --paper-2: #ffffff;
  --ink: #111621;
  --muted: #5c6678;
  --line: rgba(17, 22, 33, 0.12);
  --blue: #0b4db3;
  --blue-2: #0876d8;
  --yellow: #f5c542;
  --green: #12a56a;
  --copper: #bd6b32;
  --magenta: #c91b72;
  --dark: #10131a;
  --dark-2: #191f2a;
  --shadow: 0 24px 70px rgba(20, 28, 44, 0.16);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 22, 33, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 22, 33, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(110deg, rgba(11, 77, 179, 0.1), transparent 34%),
    linear-gradient(240deg, rgba(245, 197, 66, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.58));
}

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

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

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

#webgl-stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.86;
}

.fallback-3d-stage {
  position: fixed;
  inset: 78px 0 0;
  z-index: 1;
  pointer-events: none;
  perspective: 1200px;
  overflow: hidden;
  opacity: 0.64;
}

.fallback-3d-stage img {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 180px;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(17, 22, 33, 0.13);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 45px rgba(17, 22, 33, 0.14);
  transform: translate3d(0, 0, 0) rotateZ(var(--rz)) rotateY(var(--ry));
  animation: fallbackDrift 7s ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

@keyframes fallbackDrift {
  from { translate: 0 0; }
  to { translate: 0 -26px; }
}

.site-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(247, 248, 251, 0.82);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
}

.brand img {
  width: 78px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(11, 77, 179, 0.18));
}

.brand span {
  display: grid;
  line-height: 1.08;
}

.brand small {
  color: var(--muted);
  font-weight: 650;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a,
.mobile-menu a {
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  color: #263245;
  font-weight: 680;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.mobile-menu a:hover,
.mobile-menu a.is-active {
  background: rgba(11, 77, 179, 0.1);
  color: var(--blue);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta .btn {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.78rem 1rem;
  font-weight: 760;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 16px 34px rgba(11, 77, 179, 0.22);
}

.btn-secondary {
  color: var(--ink);
  background: var(--paper-2);
  border-color: var(--line);
}

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

.hero {
  min-height: calc(100svh - 96px);
  padding: 7rem 0 3.8rem;
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--blue);
  background: rgba(11, 77, 179, 0.09);
  border: 1px solid rgba(11, 77, 179, 0.16);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 1.2rem 0 1.1rem;
  font-size: 4.6rem;
  line-height: 0.95;
  letter-spacing: 0;
  max-width: 760px;
}

h2 {
  font-size: 2.6rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  font-size: 1.12rem;
  line-height: 1.72;
  color: #3d4759;
  max-width: 680px;
}

.hero-actions,
.section-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.55rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2.1rem;
}

.metric {
  border-left: 4px solid var(--blue);
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 12px 38px rgba(17, 22, 33, 0.07);
}

.metric strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.hero-display {
  position: relative;
  min-height: 540px;
  perspective: 1200px;
}

.product-stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.hero-product {
  position: absolute;
  width: 45%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(17, 22, 33, 0.12);
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) rotateY(var(--ry));
  animation: floatProduct var(--d) ease-in-out infinite alternate;
}

.hero-product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.7rem;
}

.hero-product:nth-child(1) { --x: 4%; --y: 0%; --r: -4deg; --ry: 18deg; --d: 5s; }
.hero-product:nth-child(2) { --x: 52%; --y: 7%; --r: 5deg; --ry: -16deg; --d: 5.8s; }
.hero-product:nth-child(3) { --x: 25%; --y: 39%; --r: 2deg; --ry: 10deg; --d: 6.4s; width: 54%; }
.hero-product:nth-child(4) { --x: 0%; --y: 58%; --r: 7deg; --ry: -12deg; --d: 5.5s; width: 38%; }
.hero-product:nth-child(5) { --x: 62%; --y: 58%; --r: -6deg; --ry: 12deg; --d: 6s; width: 36%; }

@keyframes floatProduct {
  from { translate: 0 0; }
  to { translate: 0 -18px; }
}

.section {
  padding: 5rem 0;
}

.section.dark {
  color: #f5f7fb;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, var(--dark), #171b24 55%, #211924);
  background-size: 54px 54px, 54px 54px, auto;
}

.section.dark .lead,
.section.dark .section-kicker,
.section.dark .muted,
.section.dark .product-card p {
  color: rgba(245, 247, 251, 0.76);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-head p {
  margin-bottom: 0;
}

.section-kicker {
  color: var(--blue);
  font-weight: 820;
  margin-bottom: 0.5rem;
}

.category-strip {
  padding: 1rem 0 3rem;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.category-tile,
.range-card,
.product-card,
.signal-card,
.story-panel,
.contact-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(17, 22, 33, 0.08);
}

.category-tile {
  padding: 1.1rem;
  min-height: 150px;
  position: relative;
  overflow: hidden;
}

.category-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--green), var(--magenta));
}

.category-tile strong {
  display: block;
  font-size: 1.03rem;
}

.category-tile span {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted);
  line-height: 1.45;
}

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

.product-card {
  --rx: 0deg;
  --ry: 0deg;
  min-height: 100%;
  overflow: hidden;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.product-card:hover {
  box-shadow: 0 30px 75px rgba(17, 22, 33, 0.16);
  border-color: rgba(11, 77, 179, 0.28);
}

.product-media {
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.product-body {
  padding: 1rem;
}

.product-body p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #073f85;
  background: rgba(11, 77, 179, 0.09);
  margin-bottom: 0.7rem;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.45rem;
}

.spec-list li {
  color: #334056;
  line-height: 1.35;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0.45rem;
}

.spec-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--yellow);
  margin-top: 0.42rem;
  border-radius: 50%;
}

.card-actions {
  display: flex;
  gap: 0.6rem;
}

.ghost-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 780;
  min-height: 40px;
  padding: 0.52rem 0.7rem;
  cursor: pointer;
}

.ghost-action:hover {
  border-color: rgba(11, 77, 179, 0.35);
}

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

.range-card {
  min-height: 220px;
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.range-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--copper), var(--green));
}

.range-card .meta {
  color: var(--blue);
  font-weight: 800;
  margin: 0.4rem 0 0.75rem;
}

.range-card p {
  color: var(--muted);
  line-height: 1.55;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

.search {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 0.9rem;
  width: 100%;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-buttons button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.45rem 0.7rem;
  color: #344157;
  font-weight: 760;
  cursor: pointer;
}

.filter-buttons button.is-active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 1rem 0;
  animation: productMarquee 34s linear infinite;
}

.marquee-item {
  width: 160px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.8rem;
}

@keyframes productMarquee {
  to { transform: translateX(-50%); }
}

.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: stretch;
}

.story-panel {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.86);
}

.story-panel p {
  color: var(--muted);
  line-height: 1.72;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.timeline-item strong {
  color: var(--blue);
}

.mirror-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  perspective: 1200px;
}

.signal-card {
  min-height: 230px;
  padding: 1rem;
  transform-style: preserve-3d;
  transition: transform 420ms ease, border-color 200ms ease;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.93), rgba(240,244,252,0.84)),
    linear-gradient(90deg, rgba(11, 77, 179, 0.08), rgba(245, 197, 66, 0.1));
}

.signal-card:hover {
  transform: rotateY(13deg) translateY(-4px);
  border-color: rgba(11, 77, 179, 0.28);
}

.signal-card::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 77, 179, 0.5), transparent);
  margin-top: 1rem;
}

.signal-card p {
  color: var(--muted);
  line-height: 1.55;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1rem;
}

.contact-panel,
.form-panel {
  padding: 1.25rem;
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.2rem 0;
}

.contact-line {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.8rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.contact-line strong {
  color: var(--blue);
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 760;
  color: #283449;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  min-height: 46px;
  padding: 0.75rem 0.8rem;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.footer {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
  color: #dfe7f6;
  background: #111621;
}

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

.footer a,
.footer p {
  color: rgba(223, 231, 246, 0.78);
}

.dialog {
  border: 0;
  width: min(880px, calc(100% - 32px));
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 34px 100px rgba(17, 22, 33, 0.35);
}

.dialog::backdrop {
  background: rgba(10, 13, 20, 0.62);
  backdrop-filter: blur(8px);
}

.dialog-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--paper-2);
}

.dialog-media {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 1;
}

.dialog-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.dialog-copy {
  padding: 0.35rem;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.page-hero {
  padding: 5.5rem 0 3.5rem;
}

.page-hero h1 {
  max-width: 980px;
}

.muted {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

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

@media (max-width: 1020px) {
  .hero-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-display {
    min-height: 460px;
  }

  .product-grid,
  .range-grid,
  .mirror-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 1120px) {
  .nav-links,
  .nav-cta .btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu.is-open {
    display: flex;
  }
}

@media (max-width: 820px) {

  h1 {
    font-size: 3.3rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero {
    padding-top: 4.4rem;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 2.18rem;
    line-height: 1;
    max-width: 330px;
  }

  h2 {
    font-size: 1.75rem;
  }

  .lead {
    font-size: 1rem;
    max-width: 330px;
  }

  .hero-actions .btn,
  .section-actions .btn,
  .contact-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .fallback-3d-stage {
    opacity: 0.3;
  }

  .fallback-3d-stage img {
    width: 138px;
  }

  .hero-metrics,
  .category-row,
  .product-grid,
  .range-grid,
  .mirror-wall,
  .footer-grid,
  .dialog-inner {
    grid-template-columns: 1fr;
  }

  .hero-display {
    min-height: 360px;
  }

  .hero-product {
    width: 52%;
  }

  .hero-product:nth-child(3) {
    width: 60%;
  }

  .section-head {
    display: block;
  }

  .timeline-item,
  .contact-line {
    grid-template-columns: 1fr;
  }

  .dialog {
    width: calc(100% - 18px);
  }
}
