:root {
  color-scheme: dark;
  --bg: #08110f;
  --bg-2: #111715;
  --panel: rgba(13, 20, 18, 0.82);
  --panel-solid: #111917;
  --line: rgba(221, 236, 228, 0.16);
  --text: #eef7f2;
  --muted: #9eb0a8;
  --cyan: #2df6ff;
  --green: #a4ff70;
  --amber: #ffd166;
  --red: #ff6b6b;
  --steel: #b7c7ce;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(45, 246, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164, 255, 112, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size:
    56px 56px,
    56px 56px,
    auto;
  color: var(--text);
  font-family:
    Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui,
    sans-serif;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 17, 15, 0.72);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(45, 246, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(45, 246, 255, 0.2), transparent 48%),
    rgba(255, 255, 255, 0.04);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: #ccdad3;
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--cyan);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 750;
  white-space: nowrap;
}

.header-action,
.primary-action {
  background: var(--cyan);
  color: #04100f;
  box-shadow: 0 0 30px rgba(45, 246, 255, 0.18);
}

.secondary-action {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: 88vh;
  overflow: hidden;
  padding: 128px clamp(18px, 4vw, 48px) 52px;
}

#product-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#product-canvas:active {
  cursor: grabbing;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 17, 15, 0.95) 0%, rgba(8, 17, 15, 0.52) 42%, rgba(8, 17, 15, 0.08) 76%),
    linear-gradient(0deg, rgba(8, 17, 15, 0.95) 0%, rgba(8, 17, 15, 0) 36%);
  pointer-events: none;
}

.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 7px
  );
  mix-blend-mode: overlay;
  opacity: 0.36;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(660px, 100%);
  padding-bottom: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 8em;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.92;
}

.hero-domain {
  margin: 20px 0 0;
  color: var(--cyan);
  font-size: clamp(1.04rem, 2.4vw, 1.55rem);
  font-weight: 750;
}

.hero-copy {
  width: min(560px, 100%);
  margin: 24px 0 0;
  color: #dce8e2;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.product-console {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: 36px;
  z-index: 4;
  width: min(410px, calc(100vw - 36px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(17, 25, 23, 0.88), rgba(9, 14, 13, 0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.console-top,
.console-specs,
.viewer-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.console-top {
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 13px 16px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-top span:last-child {
  color: var(--amber);
}

.console-main {
  padding: 18px 18px 6px;
}

.console-main h2 {
  margin: 0;
  font-size: clamp(1.28rem, 3vw, 2rem);
}

.console-main p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.console-specs {
  flex-wrap: wrap;
  padding: 12px 18px 18px;
}

.spec-pill {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #d8e8e0;
  font-size: 0.78rem;
}

.viewer-controls {
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 13px 16px;
}

.icon-button {
  min-width: 74px;
  min-height: 36px;
  border: 1px solid rgba(45, 246, 255, 0.38);
  background: rgba(45, 246, 255, 0.1);
  color: var(--cyan);
  cursor: pointer;
}

.icon-button[aria-pressed="false"] {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.range-control {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 178px;
  color: var(--muted);
  font-size: 0.78rem;
}

.range-control input {
  width: 116px;
  accent-color: var(--cyan);
}

.product-band,
.engineering-band,
.model-band,
.contact-band {
  padding: 84px clamp(18px, 4vw, 48px);
}

.section-heading {
  width: min(var(--max), 100%);
  margin: 0 auto 32px;
}

.section-heading h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}

.product-grid,
.capability-grid,
.model-band,
.contact-band {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

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

.product-card,
.capability-tile,
.model-row,
.upload-panel,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.product-card {
  display: grid;
  min-height: 296px;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 18px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.product-card:hover,
.product-card:focus-visible,
.product-card.is-active {
  border-color: rgba(45, 246, 255, 0.62);
  background: rgba(45, 246, 255, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.card-code {
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.product-card h3 {
  margin: 0;
  font-size: 1.28rem;
}

.product-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.mini-specs {
  display: grid;
  gap: 8px;
  color: #d6e4de;
  font-size: 0.82rem;
}

.mini-specs span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}

.engineering-band {
  background:
    linear-gradient(135deg, rgba(45, 246, 255, 0.09), transparent 30%),
    linear-gradient(315deg, rgba(255, 209, 102, 0.1), transparent 28%),
    var(--bg-2);
}

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

.capability-tile {
  min-height: 230px;
  padding: 20px;
}

.capability-tile span {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 850;
}

.capability-tile h3 {
  margin: 42px 0 12px;
  font-size: 1.42rem;
}

.capability-tile p,
.upload-panel p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.model-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 20px;
}

.model-panel .section-heading {
  margin-inline: 0;
}

.model-list {
  display: grid;
  gap: 10px;
}

.model-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.model-tag {
  border: 1px solid rgba(164, 255, 112, 0.34);
  padding: 7px 9px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.model-row strong {
  display: block;
  margin-bottom: 4px;
}

.model-row small {
  color: var(--muted);
}

.model-row button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.upload-panel {
  align-self: start;
  padding: 22px;
  background: var(--panel);
}

.panel-kicker {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.upload-panel h3 {
  margin: 20px 0 10px;
  font-size: 1.5rem;
}

.upload-control {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  border: 1px dashed rgba(45, 246, 255, 0.42);
  background: rgba(45, 246, 255, 0.08);
  color: var(--cyan);
  cursor: pointer;
}

.upload-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-status {
  min-height: 26px;
  margin-bottom: 0;
  font-size: 0.82rem;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: 22px;
  align-items: end;
  border-top: 1px solid var(--line);
}

.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
}

.contact-copy p {
  max-width: 620px;
}

.contact-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.contact-panel a {
  color: var(--cyan);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-panel span {
  color: #d8e6df;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

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

  .model-band,
  .contact-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-action {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding: 108px 16px 32px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 17, 15, 0.9) 0%, rgba(8, 17, 15, 0.22) 50%, rgba(8, 17, 15, 0.96) 100%),
      linear-gradient(90deg, rgba(8, 17, 15, 0.72), rgba(8, 17, 15, 0.12));
  }

  .hero h1 {
    max-width: 6em;
  }

  .product-console {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: end;
    width: 100%;
    margin-top: 170px;
  }

  .hero-content {
    align-self: start;
    padding-bottom: 0;
  }

  .product-band,
  .engineering-band,
  .model-band,
  .contact-band {
    padding: 62px 16px;
  }

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

  .product-card,
  .capability-tile {
    min-height: auto;
  }

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

  .model-row button {
    width: 100%;
  }
}

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