:root {
  --bg: #080a0f;
  --panel: #10141f;
  --panel-2: #161c2a;
  --text: #f4f7fb;
  --muted: #9ca8bc;
  --acid: #78ff8b;
  --pink: #ff4f9a;
  --orange: #ffb84d;
  --line: rgba(255,255,255,0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

#grid-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

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

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

.brand {
  font-size: 22px;
  font-weight: 700;
}

.brand span {
  color: var(--acid);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-button {
  color: var(--bg);
  background: var(--acid);
  padding: 10px 14px;
  border-radius: 8px;
}

.hero {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 76px);
}

.console-card {
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 20, 31, 0.92);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.46);
}

.console-top {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.console-top span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--pink);
}

.console-top span:nth-child(2) { background: var(--orange); }
.console-top span:nth-child(3) { background: var(--acid); }

pre {
  margin: 0;
  padding: 22px;
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.7;
  color: #d9ffe0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--acid);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.4vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1;
}

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

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-copy p:not(.eyebrow) {
  max-width: 690px;
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.button.primary {
  color: var(--bg);
  background: var(--acid);
  border-color: var(--acid);
}

.button.ghost {
  background: rgba(255,255,255,0.05);
}

.services,
.stack,
.delivery,
.contact {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 76px);
}

.section-title {
  max-width: 760px;
}

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

.service-grid article,
.delivery article,
.stack-panel {
  background: rgba(16, 20, 31, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.service-grid span {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--pink);
  font-family: "IBM Plex Mono", monospace;
}

.stack {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
  background: linear-gradient(90deg, rgba(120,255,139,0.08), rgba(255,79,154,0.08));
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.chip {
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 0 14px;
  color: var(--text);
  background: var(--panel);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.chip.is-active {
  color: var(--bg);
  background: var(--orange);
  border-color: var(--orange);
}

.stack-panel {
  grid-column: 2;
  padding: 24px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.25;
}

.delivery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.delivery article {
  padding: 24px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.contact-link {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 220px;
  padding: 28px;
  color: var(--bg);
  background: var(--acid);
  border-radius: 8px;
}

.contact-link span {
  font-family: "IBM Plex Mono", monospace;
}

.contact-link strong {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 5vw, 76px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero,
  .stack,
  .contact {
    grid-template-columns: 1fr;
  }

  .stack-panel {
    grid-column: auto;
  }

  .service-grid,
  .delivery {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 12px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .console-card {
    min-height: 310px;
  }

  footer {
    flex-direction: column;
  }
}
