:root {
  --bg: #05080f;
  --panel: rgba(13, 21, 35, 0.78);
  --panel-strong: rgba(18, 31, 52, 0.96);
  --text: #edf5ff;
  --muted: #91a2bb;
  --line: rgba(134, 232, 255, 0.18);
  --cyan: #37d5ff;
  --mint: #4ff7b0;
  --amber: #ffc35a;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(55, 213, 255, 0.2), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(79, 247, 176, 0.12), transparent 28%),
    linear-gradient(135deg, #05080f 0%, #081423 46%, #04070d 100%);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

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

#signal-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.72;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(55, 213, 255, 0.72);
  background: linear-gradient(145deg, rgba(55, 213, 255, 0.24), rgba(79, 247, 176, 0.14));
  box-shadow: 0 0 32px rgba(55, 213, 255, 0.18);
  color: var(--white);
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--white);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 108px) 0;
}

.hero {
  display: grid;
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(38px, 7vw, 86px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: 0;
}

.hero-text,
.tech-copy p,
.company p {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.primary-action,
.secondary-action,
.contact-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.primary-action {
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  color: #03101a;
  box-shadow: 0 14px 50px rgba(55, 213, 255, 0.18);
}

.secondary-action {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.terminal-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    var(--panel);
  background-size: 34px 34px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
}

.terminal-bar span:nth-child(2) {
  background: var(--mint);
}

.terminal-bar span:nth-child(3) {
  background: var(--amber);
}

.terminal-bar strong {
  margin-left: auto;
  letter-spacing: 0.12em;
}

.terminal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.terminal-grid div {
  min-height: 118px;
  padding: 18px;
  background: rgba(6, 13, 24, 0.86);
}

.terminal-grid small {
  display: block;
  min-height: 30px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.terminal-grid strong {
  font-size: clamp(28px, 4vw, 44px);
}

.terminal-grid em {
  color: var(--mint);
  font-style: normal;
  font-weight: 800;
}

.pulse-map {
  position: absolute;
  inset: 170px 34px 38px;
  border: 1px solid rgba(55, 213, 255, 0.2);
  background: radial-gradient(circle at center, rgba(55, 213, 255, 0.16), transparent 48%);
}

.node {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--white);
  background: var(--cyan);
  box-shadow: 0 0 24px currentColor;
  animation: pulse 2.6s infinite;
}

.node-a { left: 12%; top: 18%; color: var(--cyan); }
.node-b { right: 12%; top: 24%; color: var(--mint); animation-delay: 0.3s; }
.node-c { left: 24%; bottom: 16%; color: var(--amber); animation-delay: 0.6s; }
.node-d { right: 22%; bottom: 20%; color: #8d7cff; animation-delay: 0.9s; }

.line {
  position: absolute;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(55, 213, 255, 0.8), transparent);
  animation: scan 3.4s linear infinite;
}

.line-1 { left: 14%; top: 24%; width: 74%; transform: rotate(12deg); }
.line-2 { left: 24%; bottom: 21%; width: 58%; transform: rotate(-18deg); animation-delay: 0.8s; }
.line-3 { left: 18%; top: 58%; width: 64%; transform: rotate(32deg); animation-delay: 1.4s; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 720px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.solution-grid article {
  min-height: 300px;
  padding: 30px;
  background: rgba(8, 15, 28, 0.9);
}

.solution-grid span {
  display: block;
  margin-bottom: 70px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.solution-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.technology {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(34px, 7vw, 82px);
  align-items: start;
}

.stack-list {
  border-top: 1px solid var(--line);
}

.stack-list div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.stack-list strong {
  color: var(--amber);
}

.stack-list span {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
}

.company {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.company dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 38px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.company dl div {
  padding: 24px;
  background: var(--panel-strong);
}

.company dt {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.company dd {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.contact h2 {
  max-width: 700px;
}

.contact-link {
  min-width: 260px;
  background: var(--white);
  color: #08101b;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.contact-link.subtle {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.55); opacity: 1; }
}

@keyframes scan {
  from { opacity: 0.15; filter: hue-rotate(0deg); }
  50% { opacity: 1; }
  to { opacity: 0.15; filter: hue-rotate(80deg); }
}

@media (max-width: 880px) {
  .site-header,
  .site-footer,
  .contact,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .technology,
  .solution-grid,
  .company dl {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .terminal-panel {
    min-height: 470px;
  }

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

  .pulse-map {
    inset: 250px 22px 26px;
  }
}

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

  h1 {
    font-size: 42px;
  }

  .hero-actions,
  .primary-action,
  .secondary-action,
  .contact-methods,
  .contact-link {
    width: 100%;
  }

  .stack-list div {
    grid-template-columns: 48px 1fr;
  }
}
