:root {
  --bg: #07070a;
  --text: #f6f4fb;
  --muted: #a5a0af;
  --purple: #6932ff;
  --purple-light: #a483ff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 42%, rgba(103, 50, 255, 0.10), transparent 36%),
    var(--bg);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.14;
}

.ambient-one {
  top: -180px;
  left: 8%;
  background: var(--purple);
}

.ambient-two {
  right: 4%;
  bottom: -220px;
  background: #3d1c82;
}

.code-background {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.code-track {
  width: min(1180px, 94vw);
  margin: 0 auto;
  color: #8c68ff;
  opacity: 0.16;
  white-space: pre-wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.9;
  text-shadow: 0 0 24px rgba(105, 50, 255, 0.22);
  animation: codeScroll 46s linear infinite;
}

.page {
  position: relative;
  z-index: 2;
  width: min(840px, calc(100% - 40px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 56px 0 32px;
}

.hero {
  width: 100%;
  text-align: center;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 14px 10px;
  margin-bottom: 1px;
}

.logo {
  width: clamp(340px, 85vw, 480px);
  height: auto;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 800;
}

h1 span {
  color: transparent;
  background: linear-gradient(120deg, #b79fff 5%, #7137ff 52%, #d3c4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.65vw, 18px);
  line-height: 1.72;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.contact p {
  margin: 0;
  color: #c8c3d1;
  font-size: 14px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 7px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: gap 180ms ease, border-color 180ms ease, color 180ms ease;
}

.cta span {
  color: var(--purple-light);
  transition: transform 180ms ease;
}

.cta:hover,
.cta:focus-visible {
  gap: 12px;
  color: #fff;
  border-color: var(--purple-light);
}

.cta:hover span,
.cta:focus-visible span {
  transform: translate(3px, -3px);
}

.footer {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #76717f;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 760ms cubic-bezier(.2, .75, .25, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes codeScroll {
  from { transform: translateY(-45%); }
  to { transform: translateY(0); }
}

@media (max-width: 640px) {
  .page {
    min-height: calc(100vh - 120px);
    padding-top: 38px;
  }

  .logo-wrap {
    padding: 11px 15px;
    margin-bottom: 28px;
    border-radius: 14px;
  }

  .logo {
    width: min(250px, 72vw);
  }

  .lead {
    margin-top: 20px;
  }

  .contact {
    flex-direction: column;
    gap: 8px;
    margin-top: 26px;
  }

  .code-track {
    width: 170vw;
    margin-left: -35vw;
    opacity: 0.13;
    font-size: 13px;
  }

  .footer {
    min-height: 120px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
