@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("assets/jetbrains-mono.woff2") format("woff2");
}

:root {
  --accent: #12f94b;
  --accent-hover: #7dffa3;
  --glow-opacity: 1;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #ededed;
  font-family: var(--font-mono);
  background: #0a0a0a;
  margin: 0;
  overflow-x: clip;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

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

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(18, 249, 75, 0.25);
  }
  50% {
    box-shadow: 0 0 60px rgba(18, 249, 75, 0.5);
  }
}

@keyframes floatY {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -10px;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes dash {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

html[data-crt="on"] body::before,
html[data-crt="on"] body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
}

html[data-crt="on"] body::before {
  z-index: 98;
  background: radial-gradient(transparent 55%, rgba(0, 0, 0, 0.5) 100%);
}

html[data-crt="on"] body::after {
  z-index: 99;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.22) 0,
    rgba(0, 0, 0, 0.22) 1px,
    transparent 1px,
    transparent 3px
  );
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #1f3d27;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

::selection {
  color: #0a0a0a;
  background: var(--accent);
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 48px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 12.5px;
}

.crt-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crt-toggle--footer {
  display: none;
}

.demo-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: center;
  gap: 44px;
  max-width: 1080px;
  margin: 0 auto;
}

.demo-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #1c241c;
}

.demo-step-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.demo-step-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: right;
  white-space: nowrap;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.chat-grid {
  display: grid;
  grid-template-columns: 1fr 520px;
  align-items: center;
  gap: 56px;
}

.footer-cols {
  display: flex;
  gap: 80px;
}

.constellation-wrap {
  --cscale: 1;
  display: flex;
  justify-content: center;
  height: calc(660px * var(--cscale));
  margin-top: 20px;
  overflow: hidden;
}

.constellation-stage {
  position: relative;
  flex: 0 0 auto;
  width: 900px;
  height: 660px;
  transform: scale(var(--cscale));
  transform-origin: center top;
}

.x-social-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 10px;
  color: #8a8a8a;
  font-size: 13px;
  border: 1px solid #252525;
  border-radius: 7px;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.x-social-button svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.x-social-button:hover {
  color: var(--accent);
  border-color: #2f5f3f;
  background: rgba(18, 249, 75, 0.04);
}

.x-social-button--nav {
  min-width: 40px;
  min-height: 38px;
  justify-content: center;
  padding: 9px 12px;
  color: #ededed;
  background: #111;
  border-color: #2f2f2f;
  flex: none;
}

.x-social-button--nav svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 1080px) {
  .chat-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 940px) {
  .constellation-wrap {
    --cscale: 0.8;
  }
}

@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .nav-links,
  .demo-dash {
    display: none;
  }
}

@media (max-width: 760px) {
  .constellation-wrap {
    --cscale: 0.62;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 56px 20px;
  }

  .footer-cols {
    flex-wrap: wrap;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .demo-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .demo-step-meta {
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .constellation-wrap {
    --cscale: 0.46;
  }

  .crt-toggle--nav {
    display: none;
  }

  .crt-toggle--footer {
    display: flex;
  }

  .x-social-button--nav span {
    display: none;
  }
}

@media (max-width: 420px) {
  .constellation-wrap {
    --cscale: 0.36;
  }

  nav {
    gap: 10px !important;
    padding-inline: 14px !important;
  }

  nav > div:last-child {
    gap: 8px !important;
  }

  nav > div:last-child > a:last-child {
    padding-inline: 12px !important;
  }
}
