:root {
  --bg-0: #100e0c;
  --bg-1: #1a1612;
  --ink: #f4efe6;
  --muted: #b3a794;
  --accent: #ff7a3d;
  --accent-cool: #3dffa8;
  --line: rgba(255, 122, 61, 0.22);
  --font-display: "Outfit", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-mono);
  background:
    radial-gradient(900px 520px at 85% -5%, rgba(255, 122, 61, 0.16), transparent 55%),
    radial-gradient(700px 420px at 5% 80%, rgba(61, 255, 168, 0.07), transparent 50%),
    linear-gradient(165deg, var(--bg-0), var(--bg-1) 50%, #0c0a08);
  overflow-x: hidden;
}

.bitfield {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80'%3E%3Ctext x='8' y='28' fill='%23ff7a3d' font-family='monospace' font-size='11'%3E01001101%3C/text%3E%3Ctext x='88' y='28' fill='%233dffa8' font-family='monospace' font-size='11'%3E11010010%3C/text%3E%3Ctext x='8' y='58' fill='%23b3a794' font-family='monospace' font-size='11'%3E00101111%3C/text%3E%3Ctext x='88' y='58' fill='%23ff7a3d' font-family='monospace' font-size='11'%3E10110001%3C/text%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
  animation: scroll-bits 40s linear infinite;
}

@keyframes scroll-bits {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 -240px;
  }
}

.topbar,
.hero,
.brief,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.logo {
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-cool);
  box-shadow: 0 0 0 0 rgba(61, 255, 168, 0.45);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(61, 255, 168, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 255, 168, 0);
  }
}

.hero {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) 3rem;
  max-width: 48rem;
}

.callsign {
  margin: 0 0 1rem;
  color: var(--accent-cool);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 0.8s ease forwards 0.1s;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 10vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.2s;
}

.lede {
  margin: 1.4rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.6;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.35s;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.5s;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.2rem;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cta.primary {
  background: var(--accent);
  color: #140f0c;
  font-weight: 600;
}

.cta.primary:hover {
  transform: translateY(-2px);
  background: #ff945f;
}

.cta.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(20, 16, 12, 0.45);
}

.cta.ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brief {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 4rem;
}

.brief h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.meta {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.meta > div {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.meta dt {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.meta dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.hint {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hint a {
  color: var(--accent-cool);
}

.footer {
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .callsign,
  .brand,
  .lede,
  .cta-row {
    opacity: 1;
  }
}
