:root {
  --bg: #070707;
  --surface: rgba(18, 18, 18, 0.78);
  --surface-2: rgba(255, 255, 255, 0.065);
  --ink: #fff8ef;
  --muted: #c9c1b8;
  --quiet: #8d8780;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --red: #d40000;
  --red-2: #ff2d24;
  --warm: #fff0d0;
  --mx: 48%;
  --my: 42%;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 10;
  transform: translateY(-140%);
  background: var(--warm);
  color: #111;
  padding: 10px 14px;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 45, 36, 0.18), transparent 20%),
    radial-gradient(circle at 16% 20%, rgba(212, 0, 0, 0.42), transparent 31%),
    radial-gradient(circle at 92% 78%, rgba(212, 0, 0, 0.2), transparent 25%),
    linear-gradient(135deg, #050505 0%, #111 56%, #050505 100%);
}

.launch {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(18px, 3.4vw, 54px);
  overflow: hidden;
  isolation: isolate;
}

.launch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 48%, black, transparent 80%);
}

.launch::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -3;
  border: 1px solid var(--line);
  pointer-events: none;
}

.stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ghost-logo {
  position: absolute;
  width: min(680px, 40vw);
  right: 3vw;
  top: 16vh;
  opacity: 0.055;
  filter: grayscale(1) contrast(1.2);
  transform: rotate(-4deg);
}

.mesh {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  animation: breathe 8s ease-in-out infinite;
}

.mesh-a {
  width: min(50vw, 620px);
  height: min(50vw, 620px);
  top: 16%;
  right: -8%;
}

.mesh-b {
  width: min(30vw, 360px);
  height: min(30vw, 360px);
  left: 38%;
  bottom: 8%;
  animation-delay: -3s;
}

.trace {
  position: absolute;
  width: 42vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  animation: trace 7s linear infinite;
}

.trace-a {
  top: 22%;
  right: -12%;
  rotate: -16deg;
}

.trace-b {
  bottom: 24%;
  left: -16%;
  rotate: 12deg;
  animation-delay: -2.8s;
}

.node {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--red-2);
  background: rgba(212, 0, 0, 0.28);
  box-shadow: 0 0 24px rgba(255, 45, 36, 0.34);
  animation: node 6s ease-in-out infinite;
}

.node-a {
  top: 34%;
  right: 18%;
}

.node-b {
  bottom: 18%;
  left: 46%;
  animation-delay: -2s;
}

.nav {
  width: min(1420px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: block;
  width: min(410px, 58vw);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(212, 0, 0, 0.28));
}

.nav-link,
.primary-link,
button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  padding: 0 16px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.primary-link:hover,
button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 45, 36, 0.72);
}

.layout {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(520px, 0.9fr) minmax(430px, 540px);
  gap: clamp(34px, 5vw, 84px);
  align-items: center;
  width: min(1320px, 100%);
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--red-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.badge span {
  width: 11px;
  height: 11px;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(212, 0, 0, 0.16);
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(46px, 5.6vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
}

.intro {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.6;
}

.signup,
.panel,
.tiles article {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.026)),
    radial-gradient(circle at 86% 18%, rgba(212, 0, 0, 0.24), transparent 34%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.signup {
  width: min(640px, 100%);
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: clamp(18px, 2.2vw, 26px);
}

.signup-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.signup-head strong {
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.08;
}

.signup-head p,
.form-note,
.tiles p,
.panel-top p,
.panel-top span,
.countdown span,
.progress-label span {
  margin: 0;
  color: var(--muted);
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  outline: none;
  background: rgba(255, 255, 255, 0.075);
  color: var(--ink);
  padding: 0 14px;
}

input:focus {
  border-color: var(--red-2);
  box-shadow: 0 0 0 3px rgba(212, 0, 0, 0.24);
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

button {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  background: var(--red);
  color: white;
}

button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

button:hover {
  background: var(--red-2);
}

button:hover::before {
  transform: translateX(110%);
}

button span,
button svg {
  position: relative;
  z-index: 1;
}

button svg {
  width: 22px;
  height: 22px;
  margin-left: 8px;
}

button.ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.065);
}

button.ghost:hover {
  background: rgba(212, 0, 0, 0.14);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-note {
  min-height: 20px;
  font-size: 13px;
}

.form-note.is-success {
  color: white;
}

.form-note.is-error {
  color: #ffb6ae;
}

.panel {
  position: relative;
  min-height: 520px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: clamp(20px, 2.3vw, 30px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, transparent, rgba(212, 0, 0, 0.11));
  pointer-events: none;
}

.panel:hover {
  border-color: rgba(255, 45, 36, 0.56);
}

.panel::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -90px;
  right: -120px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: inset 0 0 0 58px transparent, inset 0 0 0 59px rgba(255, 45, 36, 0.26);
  animation: breathe 8s ease-in-out infinite;
}

.panel > * {
  position: relative;
  z-index: 2;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.panel-top p,
.panel-top span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-top span {
  color: var(--red-2);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.countdown div {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 12px;
}

.countdown strong {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.progress {
  display: grid;
  gap: 10px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}

.bar {
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.bar span {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-2), var(--warm));
}

.tiles {
  display: grid;
  gap: 10px;
}

.tiles article {
  position: relative;
  min-height: 96px;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  padding: 16px;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease;
}

.tiles article:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 36, 0.5);
}

.tiles svg {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  color: var(--red-2);
}

.tiles strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.tiles p {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.45;
}

.ticker {
  width: min(1420px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.ticker div {
  display: flex;
  width: max-content;
  animation: ticker 18s linear infinite;
}

.ticker span {
  padding: 14px 26px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

:focus-visible {
  outline: 3px solid rgba(255, 240, 208, 0.95);
  outline-offset: 3px;
}

@keyframes trace {
  from {
    translate: -34vw 0;
    opacity: 0;
  }
  18%, 70% {
    opacity: 1;
  }
  to {
    translate: 52vw 0;
    opacity: 0;
  }
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.4;
    scale: 0.96;
  }
  50% {
    opacity: 0.86;
    scale: 1.04;
  }
}

@keyframes node {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    transform: translate3d(18px, -22px, 0) rotate(45deg);
    opacity: 1;
  }
}

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

@media (max-width: 1020px) {
  .launch {
    min-height: auto;
  }

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

  .panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .launch {
    padding: 16px;
  }

  .launch::after {
    inset: 8px;
  }

  .logo {
    width: min(270px, 58vw);
  }

  .nav-link {
    min-height: 42px;
    padding: 0 10px;
    font-size: 12px;
  }

  h1 {
    font-size: 42px;
  }

  .fields,
  .form-actions,
  .countdown {
    grid-template-columns: 1fr;
  }

  button.ghost {
    min-height: 48px;
  }
}

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

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