:root {
  --orange: #ff6b1a;
  --green: #2bb673;
  --blue: #2ba8e0;
  --ink: #1a1d23;
  --paper: #fafaf7;
  --gray: #e5e7eb;
  --muted: #686e78;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(rgba(26, 29, 35, 0.24) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.signal-line {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0 60%, var(--green) 60% 90%, var(--blue) 90%);
  transform-origin: left;
  animation: signal-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-header,
.site-footer,
.hero {
  width: min(100% - 48px, 1340px);
  margin-inline: auto;
}

.site-header {
  min-height: 112px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray);
}

.brand {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.055em;
}

.brand-copy small {
  color: var(--green);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(43, 182, 115, 0.45);
  animation: pulse 2.5s infinite;
}

main {
  flex: 1;
}

.hero {
  padding: clamp(64px, 8vw, 124px) 0 48px;
}

.hero-kicker,
.eyebrow {
  color: var(--orange);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

h1 {
  max-width: 1100px;
  margin: 28px 0 34px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.3rem, 7.6vw, 7.8rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.accent-word {
  position: relative;
  color: var(--orange);
  white-space: nowrap;
}

.accent-word::after {
  content: "";
  position: absolute;
  left: 0.05em;
  right: 0;
  bottom: -0.04em;
  height: 0.055em;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 0.8s 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-break {
  display: none;
}

.hero-intro {
  max-width: 680px;
  margin: 0;
  color: #40444c;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.signal-card {
  position: relative;
  margin-top: clamp(64px, 8vw, 110px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
}

.signal-copy p {
  margin: 10px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.signal-copy,
.hero-intro,
.track {
  min-width: 0;
}

.decode-button {
  border: 0;
  border-radius: 100px;
  background: var(--orange);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 22px 17px 25px;
  font: 700 0.78rem/1 "Inter", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}

.decode-button:hover {
  background: #eb5c0c;
  transform: translateY(-2px);
}

.decode-button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.decode-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.decoded {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows 600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 400ms ease;
}

.decoded > * {
  min-height: 0;
}

.signal-card.is-open .decoded {
  grid-template-rows: repeat(5, 1fr);
  opacity: 1;
  padding-top: 18px;
}

.track {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: baseline;
  gap: 0;
  padding: 15px 0;
  border-top: 1px solid var(--gray);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  overflow-wrap: anywhere;
}

.track span {
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

.hero-footer {
  margin-top: clamp(60px, 8vw, 108px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}

.hero-footer p {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.2rem, 2.3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.28;
}

.green-dot {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-right: 0.35em;
  border-radius: 50%;
  background: var(--green);
}

.indent {
  padding-left: 1.05em;
}

.coordinates {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.61rem;
  letter-spacing: 0.15em;
}

.site-footer {
  min-height: 76px;
  border-top: 1px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
}

.launch-code {
  color: var(--blue);
}

.footer-partner {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-partner:hover {
  color: var(--ink);
}

.footer-partner:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

h1.reveal {
  animation-delay: 120ms;
}

.hero-intro.reveal {
  animation-delay: 240ms;
}

.signal-card.reveal {
  animation-delay: 380ms;
}

.hero-footer.reveal {
  animation-delay: 500ms;
}

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

@keyframes signal-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes underline {
  to { transform: scaleX(1); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(43, 182, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 182, 115, 0); }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  .hero {
    width: min(100% - 32px, 1340px);
  }

  .site-header {
    min-height: 88px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .brand-copy strong {
    font-size: 1.22rem;
  }

  .brand-copy small {
    font-size: 0.48rem;
  }

  .status {
    font-size: 0;
  }

  .status-dot {
    width: 10px;
    height: 10px;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    margin-top: 22px;
    font-size: clamp(3.2rem, 15vw, 5rem);
    line-height: 0.98;
  }

  .mobile-break {
    display: block;
  }

  .hero-intro br {
    display: none;
  }

  .signal-card {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 60px;
    padding: 24px 0;
  }

  .decode-button {
    width: 100%;
    justify-content: space-between;
    font-size: 0.7rem;
    letter-spacing: 0.035em;
  }

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

  .coordinates {
    align-items: flex-start;
  }

  .site-footer {
    min-height: 92px;
    padding-block: 18px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
  }

  .launch-code {
    display: none;
  }
}

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