:root {
  color-scheme: dark;
  --bg: #07090f;
  --panel: rgba(13, 18, 32, 0.74);
  --panel-strong: rgba(16, 23, 41, 0.9);
  --line: rgba(151, 174, 214, 0.22);
  --text: #eef5ff;
  --muted: #9dacbf;
  --cyan: #45e3ff;
  --green: #63f2a8;
  --pink: #ff6bd6;
  --amber: #ffd166;
  --shadow: rgba(69, 227, 255, 0.18);
  --radius: 8px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(69, 227, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 82% 22%, rgba(255, 107, 214, 0.12), transparent 28rem),
    radial-gradient(circle at 58% 80%, rgba(99, 242, 168, 0.11), transparent 24rem),
    var(--bg);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  animation: gridShift 16s linear infinite;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(69, 227, 255, 0.07) 38%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(99, 242, 168, 0.06) 62%,
    transparent 100%
  );
  transform: translateX(-65%);
  animation: sweep 6.5s ease-in-out infinite;
}

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

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(69, 227, 255, 0.72);
  box-shadow: 0 0 18px rgba(69, 227, 255, 0.7);
  animation: floatParticle linear infinite;
}

.particles span:nth-child(1) { left: 9%; animation-duration: 13s; animation-delay: -3s; }
.particles span:nth-child(2) { left: 22%; animation-duration: 19s; animation-delay: -7s; }
.particles span:nth-child(3) { left: 38%; animation-duration: 15s; animation-delay: -11s; }
.particles span:nth-child(4) { left: 53%; animation-duration: 22s; animation-delay: -5s; }
.particles span:nth-child(5) { left: 69%; animation-duration: 16s; animation-delay: -9s; }
.particles span:nth-child(6) { left: 84%; animation-duration: 20s; animation-delay: -2s; }

.page-shell {
  display: grid;
  min-height: 100vh;
  align-content: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: rgba(13, 18, 32, 0.54);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px);
}

.brand,
.status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand {
  min-width: 0;
  font-weight: 800;
}

.mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(69, 227, 255, 0.48);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(69, 227, 255, 0.24), rgba(255, 107, 214, 0.12));
  box-shadow: 0 0 32px var(--shadow);
}

.mark::before,
.mark::after {
  position: absolute;
  content: "";
  border-radius: inherit;
}

.mark::before {
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  animation: rotateMark 8s linear infinite;
}

.mark::after {
  inset: 14px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.status {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.status span {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
  animation: pulse 1.7s ease-in-out infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: 22px;
  align-items: stretch;
}

.intro,
.terminal,
.metric,
.stack-strip {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
}

.intro {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 58px);
}

.intro::before {
  position: absolute;
  inset: -1px;
  content: "";
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(69, 227, 255, 0.34), transparent),
    linear-gradient(180deg, transparent, rgba(255, 107, 214, 0.2), transparent);
  opacity: 0.36;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 36px;
  height: 1px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

h1 {
  max-width: 760px;
  margin: 0;
  color: #f5f8ff;
  font-size: 50px !important;
  line-height: 0.96;
  letter-spacing: 0;
}

h1 span {
  display: block;
  width: fit-content;
  background: linear-gradient(90deg, #ffffff, var(--cyan), var(--green), #ffffff);
  background-size: 230% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textFlow 5s ease-in-out infinite;
  font-size: 50px !important;

}

.copy {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(69, 227, 255, 0.46);
  border-radius: var(--radius);
  padding: 0 18px;
  color: var(--text);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button.primary {
  background: linear-gradient(135deg, rgba(69, 227, 255, 0.22), rgba(99, 242, 168, 0.12));
  box-shadow: 0 14px 42px rgba(69, 227, 255, 0.16);
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 242, 168, 0.68);
  background: rgba(255, 255, 255, 0.07);
}

.build-panel {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin-top: 34px;
  border: 1px solid rgba(151, 174, 214, 0.18);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(7, 9, 15, 0.38);
}

.build-panel > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.build-panel small {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.build-panel strong {
  color: var(--green);
  font-family: var(--mono);
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(151, 174, 214, 0.12);
}

.progress-track span {
  display: block;
  width: 74%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 22px rgba(69, 227, 255, 0.32);
  transition: width 650ms ease;
}

.orbit {
  position: absolute;
  right: clamp(-120px, -8vw, -64px);
  bottom: -136px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(69, 227, 255, 0.2);
  border-radius: 999px;
  animation: rotateMark 18s linear infinite;
}

.orbit::before,
.orbit::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.orbit::before {
  inset: 54px;
  border: 1px dashed rgba(99, 242, 168, 0.28);
}

.orbit::after {
  top: 42px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: var(--pink);
  box-shadow: 0 0 26px var(--pink);
}

.side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 22px;
  min-width: 0;
}

.terminal {
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 380px;
}

.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.dots {
  display: flex;
  gap: 7px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--pink);
}

.dots i:nth-child(2) {
  background: var(--amber);
}

.dots i:nth-child(3) {
  background: var(--green);
}

pre {
  margin: 0;
  padding: 24px;
  white-space: pre-wrap;
  color: #d8e6ff;
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1.5vw, 0.94rem);
  line-height: 1.8;
}

.key {
  color: var(--cyan);
}

.string {
  color: var(--green);
}

.cursor {
  display: inline-block;
  width: 9px;
  height: 1.2em;
  margin-left: 3px;
  vertical-align: -0.2em;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  animation: blink 1s steps(2, start) infinite;
}

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

.metric {
  min-width: 0;
  border-radius: var(--radius);
  padding: 16px;
}

.metric small {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.stack-strip {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 22px;
  padding: 13px 0;
}

.stack-strip div {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: marquee 22s linear infinite;
}

.stack-strip span {
  border: 1px solid rgba(69, 227, 255, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--mono);
  font-size: 0.78rem;
}

@keyframes gridShift {
  to {
    background-position: 52px 52px;
  }
}

@keyframes sweep {
  0%, 100% {
    transform: translateX(-72%);
    opacity: 0;
  }
  45%, 55% {
    opacity: 1;
  }
  100% {
    transform: translateX(72%);
  }
}

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

@keyframes pulse {
  50% {
    transform: scale(1.55);
    opacity: 0.58;
  }
}

@keyframes textFlow {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes floatParticle {
  from {
    transform: translate3d(0, 108vh, 0) scale(0.8);
    opacity: 0;
  }
  12%,
  84% {
    opacity: 1;
  }
  to {
    transform: translate3d(38px, -12vh, 0) scale(1.4);
    opacity: 0;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 860px) {
  .page-shell {
    align-content: start;
    padding: 24px 0;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .intro {
    min-height: 470px;
  }
}

@media (max-width: 580px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .intro {
    min-height: 0;
    padding: 28px 20px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.1rem);
  }

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

  .button {
    width: 100%;
  }
}

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