:root {
  color-scheme: dark;
  --ink: #f6fbff;
  --muted: #9db4c7;
  --deep: #061016;
  --panel: rgba(10, 23, 34, 0.7);
  --line: rgba(166, 232, 255, 0.18);
  --cyan: #38d7ff;
  --mint: #4ff0b5;
  --coral: #ff6f61;
  --gold: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 14%, rgba(56, 215, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(255, 111, 97, 0.16), transparent 26%),
    linear-gradient(135deg, #041019 0%, #09151a 48%, #140f1a 100%);
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

.harbor-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 4px;
  mix-blend-mode: soft-light;
  opacity: 0.32;
}

[data-glass] {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(13, 28, 39, 0.78), rgba(8, 17, 24, 0.54));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: var(--header-height);
  padding: 12px 14px 12px 18px;
  transform: translateX(-50%);
  border-radius: var(--radius);
}

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

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 14px);
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(79, 240, 181, 0.34);
  background: rgba(79, 240, 181, 0.08);
}

.brand-mark span {
  width: 14px;
  height: 14px;
  background: var(--cyan);
  animation: pixelPulse 2.8s ease-in-out infinite;
}

.brand-mark span:nth-child(2) {
  background: var(--mint);
  animation-delay: 0.2s;
}

.brand-mark span:nth-child(3) {
  background: var(--coral);
  animation-delay: 0.35s;
}

.brand-mark span:nth-child(4) {
  background: var(--gold);
  animation-delay: 0.55s;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
  margin-inline-start: 10px;
}

.language-switcher::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 12px;
  width: 7px;
  height: 7px;
  border-inline-end: 2px solid var(--muted);
  border-block-end: 2px solid var(--muted);
  pointer-events: none;
  transform: translateY(-62%) rotate(45deg);
}

.language-switcher select {
  width: 150px;
  min-height: 42px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 13px;
  outline: none;
  appearance: none;
  cursor: pointer;
}

[dir="rtl"] .language-switcher select {
  padding: 0 12px 0 32px;
}

[dir="rtl"] .language-switcher::after {
  inset-inline-end: auto;
  inset-inline-start: 12px;
}

.language-switcher select:focus {
  border-color: rgba(79, 240, 181, 0.56);
}

.language-switcher option {
  color: #061016;
}

.section-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.64fr);
  gap: 44px;
  align-items: center;
  min-height: 100vh;
  padding: 126px 0 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--mint);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero h1 > span:first-child {
  display: block;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.hero h1 > span:last-child {
  display: block;
  margin-top: 14px;
  color: transparent;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(24px, 4.1vw, 52px);
  line-height: 1.04;
  -webkit-text-stroke: 1px rgba(246, 251, 255, 0.72);
  text-shadow: 0 0 28px rgba(56, 215, 255, 0.22);
}

.hero-lede {
  max-width: 700px;
  margin: 28px 0 0;
  color: #c8d8e3;
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #041016;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.signal-panel {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  padding: 20px;
  border-radius: var(--radius);
}

.signal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(56, 215, 255, 0.24) 50%, transparent 52%),
    linear-gradient(0deg, transparent 0 48%, rgba(255, 111, 97, 0.18) 50%, transparent 52%);
  background-size: 82px 82px;
  animation: driftGrid 10s linear infinite;
  opacity: 0.6;
}

.panel-head,
.panel-metrics {
  position: relative;
  z-index: 1;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px var(--mint);
}

.signal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 54px 0;
}

.signal-grid span {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(56, 215, 255, 0.08);
  animation: tileLift 4.5s ease-in-out infinite;
}

.signal-grid span:nth-child(3n) {
  background: rgba(79, 240, 181, 0.12);
  animation-delay: 0.25s;
}

.signal-grid span:nth-child(4n) {
  background: rgba(255, 111, 97, 0.12);
  animation-delay: 0.55s;
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.panel-metrics div {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.panel-metrics strong,
.panel-metrics small {
  display: block;
}

.panel-metrics strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
}

.panel-metrics small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 16, 25, 0.62);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee span {
  padding: 22px 30px;
  color: rgba(246, 251, 255, 0.74);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.intro,
.product-section,
.showcase,
.contact {
  padding: 112px 0;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: 56px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.showcase h2,
.contact h2 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.1;
  letter-spacing: 0;
}

.intro p {
  margin: 0;
  color: #c8d8e3;
  font-size: 17px;
  line-height: 1.95;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.product-card {
  min-height: 308px;
  padding: 22px;
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 240, 181, 0.5);
}

.card-index {
  color: var(--coral);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.product-card h3 {
  margin: 70px 0 14px;
  font-size: 23px;
  line-height: 1.12;
}

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

.capabilities {
  padding: 112px 0;
  background: linear-gradient(90deg, rgba(56, 215, 255, 0.07), rgba(255, 111, 97, 0.08));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: 44px;
}

.capability-list {
  display: grid;
  gap: 12px;
}

.capability-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.capability-item span {
  color: var(--mint);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.capability-item strong {
  text-align: right;
  font-size: 19px;
  line-height: 1.35;
}

[dir="rtl"] .capability-item strong {
  text-align: left;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.device-wall {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  grid-template-rows: 170px 170px;
  gap: 14px;
}

.device-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(56, 215, 255, 0.28), transparent 52%),
    linear-gradient(315deg, rgba(255, 111, 97, 0.24), transparent 48%),
    rgba(8, 17, 24, 0.78);
}

.device-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.device-card span {
  position: absolute;
  height: 10px;
  background: rgba(246, 251, 255, 0.82);
}

.device-card span:nth-child(1) {
  top: 34px;
  left: 30px;
  width: 36%;
}

.device-card span:nth-child(2) {
  top: 60px;
  left: 30px;
  width: 54%;
  background: var(--mint);
}

.device-card span:nth-child(3) {
  right: 28px;
  bottom: 28px;
  width: 22%;
  background: var(--coral);
}

.device-card.wide {
  grid-row: span 2;
}

.contact-panel {
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius);
}

.contact-panel p {
  margin: 22px 0 28px;
  color: #c8d8e3;
  font-size: 18px;
}

.contact-panel a:not(.button) {
  color: var(--mint);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

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

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

@keyframes pixelPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.86;
  }
  50% {
    transform: scale(0.74);
    opacity: 1;
  }
}

@keyframes driftGrid {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(82px, 82px, 0);
  }
}

@keyframes tileLift {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 920px) {
  .hero,
  .intro-layout,
  .capability-layout,
  .showcase {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
    padding-top: 118px;
  }

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

  .signal-panel {
    min-height: 380px;
  }

  .capability-item strong {
    font-size: 18px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    top: 10px;
    width: min(100% - 20px, 1120px);
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text small {
    display: none;
  }

  .menu-button {
    display: block;
    order: 3;
  }

  .language-switcher {
    order: 2;
    margin-inline-start: auto;
  }

  .language-switcher select {
    width: 118px;
    min-height: 42px;
  }

  .site-nav {
    order: 4;
    position: fixed;
    top: calc(100% + 10px);
    inset-inline-start: 0;
    display: grid;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(6, 16, 22, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px;
  }

  .menu-button.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .section-shell {
    width: min(100% - 24px, 1120px);
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero h1 > span:last-child {
    font-size: clamp(22px, 8vw, 36px);
  }

  .hero-lede {
    font-size: 16px;
  }

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

  .product-card {
    min-height: 230px;
  }

  .product-card h3 {
    margin-top: 52px;
  }

  .capability-item {
    display: grid;
    justify-content: start;
  }

  .capability-item strong {
    text-align: left;
  }

  [dir="rtl"] .capability-item strong {
    text-align: right;
  }

  .device-wall {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 150px);
  }

  .device-card.wide {
    grid-row: span 1;
  }

  .site-footer {
    flex-direction: column;
  }
}

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