:root {
  --bg: #080b0c;
  --panel: rgba(14, 20, 22, 0.78);
  --panel-strong: rgba(18, 29, 31, 0.92);
  --text: #e8f1ef;
  --muted: #8ea29d;
  --line: rgba(149, 255, 226, 0.16);
  --cyan: #6fffe2;
  --green: #a5ff75;
  --amber: #ffce6f;
  --red: #ff6f87;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(111, 255, 226, 0.16), transparent 31%),
    radial-gradient(circle at 82% 16%, rgba(165, 255, 117, 0.12), transparent 28%),
    linear-gradient(135deg, #050708 0%, #0b1010 52%, #10150f 100%);
  color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-x: hidden;
}

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

#signal-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
  z-index: -2;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-family: "Rajdhani", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 18px rgba(111, 255, 226, 0.8);
  transform: rotate(45deg);
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--cyan);
}

.section-grid {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 42px;
  align-items: center;
  padding: 44px 0 86px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

h1,
h2,
.device-node span,
.phone-screen strong {
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 560px;
  margin-bottom: 14px;
  font-size: clamp(30px, 3.7vw, 54px);
  line-height: 1.04;
  font-weight: 700;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

h3 {
  margin-bottom: 14px;
  font-size: 24px;
}

.hero-lead {
  max-width: 660px;
  color: #bfd0cc;
  font-size: 15px;
  line-height: 1.68;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  font-size: 13px;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 255, 226, 0.55);
}

.button.primary {
  background: linear-gradient(135deg, rgba(111, 255, 226, 0.18), rgba(165, 255, 117, 0.08));
  color: var(--cyan);
}

.button.ghost {
  color: #d9e8e4;
}

.device-console {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(111, 255, 226, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 255, 226, 0.04) 1px, transparent 1px),
    var(--panel);
  background-size: 28px 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device-console::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.console-topline {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.live-dot {
  color: var(--green);
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(165, 255, 117, 0.7);
}

.phone-core {
  position: absolute;
  inset: 50%;
  width: 178px;
  height: 312px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(111, 255, 226, 0.45);
  border-radius: 24px;
  padding: 12px;
  background: rgba(5, 9, 10, 0.82);
  box-shadow:
    inset 0 0 24px rgba(111, 255, 226, 0.08),
    0 0 44px rgba(111, 255, 226, 0.12);
  z-index: 2;
}

.phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(111, 255, 226, 0.14), rgba(165, 255, 117, 0.04));
}

.screen-title,
.phone-screen small,
.device-node strong {
  color: var(--muted);
  font-size: 11px;
}

.phone-screen strong {
  color: var(--text);
  font-size: 30px;
  line-height: 0.9;
}

.device-node {
  position: absolute;
  z-index: 3;
  width: 168px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(5, 9, 10, 0.82);
  backdrop-filter: blur(16px);
}

.device-node::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(165, 255, 117, 0.8);
}

.device-node span {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
}

.node-a {
  top: 84px;
  left: 48px;
}

.node-b {
  top: 82px;
  right: 48px;
}

.node-c {
  bottom: 64px;
  left: 46px;
}

.node-d {
  right: 46px;
  bottom: 64px;
}

.device-lines {
  position: absolute;
  inset: 42px 0 0;
  width: 100%;
  height: calc(100% - 42px);
  fill: none;
  stroke: rgba(111, 255, 226, 0.34);
  stroke-width: 1;
  stroke-dasharray: 8 12;
  animation: dash 12s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -200;
  }
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: -34px 0 96px;
  border: 1px solid var(--line);
  background: var(--line);
}

.signal-strip div {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  background: rgba(7, 11, 12, 0.92);
  color: #d5e5e1;
  font-size: 13px;
}

.signal-strip span {
  color: var(--cyan);
  font-size: 11px;
}

.section-block {
  margin-bottom: 118px;
}

.section-heading {
  display: block;
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading .eyebrow {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
}

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

.matrix-grid article,
.project-card,
.contact-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.matrix-grid article {
  min-height: 234px;
  padding: 22px;
}

.matrix-grid span {
  color: var(--cyan);
  font-size: 12px;
}

.matrix-grid p,
.project-card p {
  color: #afc0bc;
  line-height: 1.75;
  font-size: 14px;
}

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

.project-card {
  position: relative;
  min-height: 320px;
  padding: 26px;
  overflow: hidden;
}

.project-card.active {
  background:
    linear-gradient(135deg, rgba(111, 255, 226, 0.1), transparent 45%),
    var(--panel-strong);
}

.card-status {
  margin-bottom: 18px;
  color: var(--green);
  font-size: 11px;
}

.project-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: #dce9e6;
  font-size: 13px;
}

.project-card li::before {
  content: ">";
  margin-right: 10px;
  color: var(--cyan);
}

.project-link {
  width: max-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  padding: 0 14px;
  border: 1px solid rgba(111, 255, 226, 0.28);
  background: rgba(111, 255, 226, 0.05);
  color: var(--cyan);
  font-size: 12px;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.project-link:hover {
  border-color: rgba(111, 255, 226, 0.62);
  background: rgba(111, 255, 226, 0.1);
  transform: translateY(-1px);
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 86px;
  padding: 22px 26px;
}

.contact-panel span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-panel a {
  color: var(--cyan);
  font-size: 16px;
}

.contact-panel a:hover {
  color: var(--text);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 44px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 720px);
  }

  .nav-links {
    display: none;
  }

  .section-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-grid {
    min-height: auto;
    padding-top: 36px;
  }

  .device-console {
    min-height: 480px;
  }

  .signal-strip,
  .matrix-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 30px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .device-console {
    min-height: 520px;
  }

  .phone-core {
    width: 150px;
    height: 254px;
  }

  .device-node {
    width: 142px;
    padding: 12px;
  }

  .node-a,
  .node-c {
    left: 12px;
  }

  .node-b,
  .node-d {
    right: 12px;
  }
}
