:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-2: #0c0e12;
  --panel: rgba(18, 19, 20, 0.8);
  --panel-strong: rgba(22, 22, 22, 0.94);
  --line: rgba(246, 196, 96, 0.18);
  --text: #fff8ea;
  --muted: #b9ae9c;
  --blue: #6c8cff;
  --cyan: #f6c460;
  --green: #c9ff6a;
  --violet: #ff6f91;
  --coral: #ff9868;
  --shadow: 0 24px 86px rgba(0, 0, 0, 0.58);
  --max: 1180px;
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(246, 196, 96, 0.12), transparent 28rem),
    radial-gradient(circle at 86% 16%, rgba(201, 255, 106, 0.08), transparent 24rem),
    radial-gradient(circle at 52% 72%, rgba(108, 140, 255, 0.08), transparent 32rem),
    linear-gradient(180deg, #030303 0%, #080907 42%, #11100c 100%);
  color: var(--text);
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(246, 196, 96, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 196, 96, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

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

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

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--blue));
  box-shadow: 0 0 20px rgba(246, 196, 96, 0.75);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  min-height: 64px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(246, 196, 96, 0.16);
  border-radius: 8px;
  background: rgba(5, 5, 4, 0.66);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 4, 0.9);
  border-color: rgba(246, 196, 96, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.brand,
.site-nav,
.header-action,
.button {
  min-height: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 820;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(246, 196, 96, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(246, 196, 96, 0.26), rgba(201, 255, 106, 0.1)),
    #11100a;
  color: #fff4cd;
  box-shadow: inset 0 0 20px rgba(246, 196, 96, 0.12);
}

.site-nav {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a,
.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a {
  padding: 0 12px;
}

.site-nav a:hover,
.header-action:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.header-action {
  padding: 0 16px;
  border: 1px solid rgba(246, 196, 96, 0.28);
  background: rgba(246, 196, 96, 0.1);
  color: #fff0c4;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  padding: 118px max(20px, calc((100vw - var(--max)) / 2)) 42px;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.04) brightness(0.72);
  transform: scale(1.03);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 4, 3, 0.93) 0%, rgba(4, 4, 3, 0.72) 48%, rgba(4, 4, 3, 0.2) 100%),
    linear-gradient(180deg, rgba(4, 4, 3, 0.42) 0%, rgba(4, 4, 3, 0.18) 52%, var(--bg) 100%);
}

.hero-inner {
  align-self: center;
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1060px;
  margin-bottom: 18px;
  font-size: clamp(2.85rem, 5.65vw, 4.95rem);
  line-height: 0.96;
  letter-spacing: 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 22px;
  color: #e6d7bd;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions,
.capability-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 780;
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #111006;
  box-shadow: 0 18px 40px rgba(246, 196, 96, 0.24);
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff8ea;
}

.signal-panel {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(820px, 100%);
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 196, 96, 0.14);
  box-shadow: var(--shadow);
}

.signal-panel > div {
  padding: 18px;
  background: rgba(12, 12, 10, 0.82);
  backdrop-filter: blur(18px);
}

.signal-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.signal-panel strong {
  font-size: 0.98rem;
}

.section-band,
.product-section,
.systems,
.contact,
.site-footer {
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
}

.section-band {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.intro-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat,
.service-card,
.insight-board,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(246, 196, 96, 0.085), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
}

.stat {
  min-height: 210px;
  padding: 24px;
}

.stat span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
}

.product-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 54px;
  align-items: center;
  padding-top: 102px;
  padding-bottom: 106px;
  overflow: hidden;
}

.device-copy {
  max-width: 490px;
}

.device-stage {
  position: relative;
  min-height: 560px;
}

.desktop-tile {
  position: absolute;
  right: 0;
  bottom: 28px;
  width: min(620px, 85%);
  overflow: hidden;
  border: 1px solid rgba(246, 196, 96, 0.22);
  border-radius: 8px;
  background: #101009;
  box-shadow: var(--shadow);
}

.desktop-tile canvas {
  display: block;
  width: 100%;
  height: auto;
}

.phone-shell {
  position: relative;
  z-index: 2;
  width: min(300px, 62vw);
  min-height: 610px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  background: linear-gradient(150deg, #241f14, #050504 58%, #16190d);
  box-shadow: var(--shadow);
}

.phone-top {
  width: 84px;
  height: 7px;
  margin: 8px auto 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}

.app-screen {
  min-height: 542px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 30%, rgba(246, 196, 96, 0.24), transparent 9rem),
    linear-gradient(180deg, rgba(34, 29, 18, 0.96), rgba(5, 5, 4, 0.98));
}

.status-row,
.board-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.status-row {
  color: #fff4cd;
  font-size: 0.82rem;
  font-weight: 800;
}

.radar {
  position: relative;
  display: grid;
  width: 210px;
  aspect-ratio: 1;
  margin: 58px auto 64px;
  place-items: center;
  border: 1px solid rgba(246, 196, 96, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(246, 196, 96, 0.22) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(246, 196, 96, 0.22) 50%, transparent 50.5%);
}

.radar::before {
  content: "";
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(246, 196, 96, 0.22);
  border-radius: 50%;
}

.radar::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform-origin: left center;
  animation: sweep 4s linear infinite;
}

.radar span {
  position: absolute;
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.radar span:nth-child(1) {
  transform: translate(48px, -35px);
}

.radar span:nth-child(2) {
  transform: translate(-52px, 28px);
}

.radar span:nth-child(3) {
  transform: translate(18px, 66px);
}

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

.mini-list p {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #eadcc5;
  font-size: 0.86rem;
}

.mini-list span {
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cyan);
}

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

.service-card {
  min-height: 270px;
  padding: 24px;
}

.service-icon {
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  margin-bottom: 52px;
  place-items: center;
  border: 1px solid rgba(246, 196, 96, 0.28);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
}

.systems {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 54px;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 110px;
}

.systems-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.systems-media img {
  width: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.78) contrast(1.05);
}

.capability-rail {
  margin-top: 28px;
}

.capability-rail span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #eee0c8;
  font-size: 0.86rem;
  font-weight: 720;
}

.insight {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.insight-board {
  padding: 10px;
}

.board-row {
  min-height: 74px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.board-row span {
  color: var(--muted);
}

.board-row strong {
  color: #fff7e6;
}

.contact {
  padding-top: 102px;
  padding-bottom: 74px;
}

.contact-panel {
  padding: clamp(26px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(246, 196, 96, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(201, 255, 106, 0.1), transparent 34%),
    var(--panel-strong);
}

.contact-panel h2 {
  max-width: 820px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.contact-grid a,
.contact-grid address {
  display: block;
  min-height: 120px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff8ea;
  font-style: normal;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.contact-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .signal-panel,
  .intro-grid,
  .service-grid,
  .systems,
  .insight,
  .contact-grid,
  .product-section {
    grid-template-columns: 1fr;
  }

  .product-section {
    gap: 26px;
  }

  .device-stage {
    min-height: 620px;
  }

  .desktop-tile {
    width: min(620px, 92%);
  }

  .systems {
    gap: 34px;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--max));
    min-height: 58px;
    padding: 8px;
  }

  .brand span:last-child {
    max-width: 86px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-action {
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 88svh;
    padding-top: 106px;
  }

  h1 {
    font-size: clamp(2.55rem, 11vw, 3.7rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .section-band,
  .product-section,
  .systems,
  .contact {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .signal-panel > div,
  .stat,
  .service-card {
    min-height: auto;
  }

  .signal-panel {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .signal-panel::-webkit-scrollbar {
    display: none;
  }

  .device-stage {
    min-height: 570px;
  }

  .phone-shell {
    min-height: 550px;
  }

  .app-screen {
    min-height: 482px;
  }

  .radar {
    width: 180px;
    margin-block: 42px 48px;
  }

  .desktop-tile {
    bottom: 0;
  }

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