/* Halotrace placeholder site. Palette and type follow the dark theme of the product comp
   (design/Halotrace.html): Hanken Grotesk + IBM Plex Mono, signal green on a near-black canvas. */

:root {
  --canvas: #070b14;
  --surface: #0d1420;
  --line: rgb(175 189 210 / 14%);
  --text: #e8edf5;
  --text-2: #afbdd2;
  --muted: #7e8ea6;
  --signal: #16d196;
  --amber: #f2a93b;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", consolas, monospace;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--canvas);
  background-image: radial-gradient(rgb(175 189 210 / 9%) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text-2);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

/* A soft signal-coloured bloom behind the hero; fades the dot grid out toward the edges. */
.glow {
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 30%, rgb(22 209 150 / 13%), transparent 70%),
    radial-gradient(45% 40% at 8% 0%, rgb(94 155 255 / 9%), transparent 70%),
    linear-gradient(to bottom, transparent 55%, var(--canvas));
}

/* -- Header ------------------------------------------------------------------------------ */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
}

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

.brand__mark {
  width: 28px;
  height: 28px;
  color: var(--signal);
  overflow: visible;
}

.brand__node {
  transform-box: fill-box;
  transform-origin: center;
  animation: halo-pulse 3.4s ease-in-out infinite;
}

.brand__word {
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.brand__word span {
  color: var(--signal);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(13 20 32 / 70%);
  color: var(--text-2);
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgb(22 209 150 / 60%);
  animation: beacon 2.4s ease-out infinite;
}

/* -- Hero -------------------------------------------------------------------------------- */

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: clamp(24px, 6vh, 72px) clamp(48px, 8vh, 96px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--signal);
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Two beats, one per line: what you know, then what you do. */
.hero h1 {
  font-size: clamp(2.3rem, 1.2rem + 3.8vw, 3.9rem);
}

.h1__line {
  display: block;
}

.accent {
  color: var(--signal);
}

.lede {
  max-width: 34em;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--signal);
  color: #04130e;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgb(22 209 150 / 0%), 0 10px 30px -10px rgb(22 209 150 / 60%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.button:hover {
  background: #3be0ad;
  transform: translateY(-1px);
  box-shadow: 0 0 0 5px rgb(22 209 150 / 14%), 0 14px 34px -10px rgb(22 209 150 / 70%);
}

.button:hover svg {
  transform: translateX(3px);
}

.cta__note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.cta__link {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgb(175 189 210 / 35%);
  text-underline-offset: 4px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.cta__link:hover {
  color: var(--signal);
  text-decoration-color: var(--signal);
}

/* -- Stage: the animated network and its feed ------------------------------------------- */

.stage {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgb(13 20 32 / 72%), rgb(7 11 20 / 82%));
  box-shadow: 0 30px 80px -40px rgb(0 0 0 / 90%), inset 0 1px 0 rgb(255 255 255 / 4%);
  overflow: hidden;
}

.stage__canvas {
  display: block;
  width: 100%;
  height: clamp(280px, 44vh, 420px);
}

.feed {
  border-top: 1px solid var(--line);
  padding: 14px 18px 16px;
  font: 400 12.5px/1.5 var(--font-mono);
}

.feed__head {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.feed__list {
  display: grid;
  gap: 6px;
  height: 69px; /* three lines, so the stage never resizes as lines arrive */
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  align-content: start;
}

.feed__line {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  color: var(--text-2);
  animation: feed-in 0.45s ease both;
}

.feed__line:first-child .feed__text {
  color: var(--text);
}

.feed__line:nth-child(n + 2) {
  opacity: 0.8;
}

.feed__line:nth-child(n + 3) {
  opacity: 0.58;
}

.feed__time {
  color: var(--muted);
}

.feed__kind {
  color: var(--amber);
}

.feed__line--act .feed__kind,
.feed__line--opp .feed__kind {
  color: var(--signal);
}

.feed__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* -- Pillars ----------------------------------------------------------------------------- */

.pillars {
  display: grid;
  gap: 0;
  padding-bottom: clamp(56px, 9vh, 104px);
}

.pillar {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.pillar__tag {
  margin: 0 0 14px;
  color: var(--signal);
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.pillar h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pillar p:last-child {
  max-width: 30em;
  margin: 0;
  font-size: 16px;
}

/* -- Daily value ------------------------------------------------------------------------- */

.daily {
  padding-bottom: clamp(64px, 10vh, 120px);
}

.daily__title {
  max-width: 22em;
  margin: 0 0 32px;
  color: var(--text);
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.daily__title span {
  color: var(--muted);
}

.daily__grid {
  display: grid;
  gap: 16px;
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(13 20 32 / 72%), rgb(7 11 20 / 60%));
  transition: border-color 0.18s ease;
}

.card:hover {
  border-color: rgb(22 209 150 / 35%);
}

.card__icon {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid rgb(22 209 150 / 28%);
  border-radius: 11px;
  background: rgb(22 209 150 / 8%);
  color: var(--signal);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.card p {
  max-width: 28em;
  margin: 0;
  font-size: 16px;
}

/* -- Closing call to action ------------------------------------------------------------- */

.closer {
  padding-bottom: clamp(56px, 9vh, 104px);
}

/* The same panel as the stage, with the hero's signal bloom gathered in its far corner. */
.closer__card {
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(50% 75% at 100% 100%, rgb(22 209 150 / 11%), transparent 70%),
    linear-gradient(180deg, rgb(13 20 32 / 85%), rgb(7 11 20 / 82%));
  box-shadow: 0 30px 80px -40px rgb(0 0 0 / 90%), inset 0 1px 0 rgb(255 255 255 / 4%);
}

.closer__title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.9rem, 1.1rem + 2.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.closer__line {
  display: block;
}

.closer__lede {
  max-width: 34em;
  margin: 20px 0 0;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
}

/* -- Footer ------------------------------------------------------------------------------ */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 400 12px/1.5 var(--font-mono);
}

.foot p {
  margin: 0;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--signal);
}

/* -- 404 --------------------------------------------------------------------------------- */

.lost {
  padding-block: clamp(64px, 18vh, 180px);
}

.lost .cta__note a {
  color: var(--signal);
}

/* -- Narrow screens ---------------------------------------------------------------------- */

@media (width < 520px) {
  /* Too narrow for the two-line break; let the sentence wrap (and balance) on its own. */
  .closer__line {
    display: inline;
  }

  .feed__line {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .feed__time {
    display: none;
  }
}

/* -- Wider screens ----------------------------------------------------------------------- */

@media (width >= 760px) {
  .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

  .daily__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width >= 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    min-height: calc(100svh - 84px - 180px);
  }

  .stage__canvas {
    height: clamp(340px, 50vh, 460px);
  }
}

/* -- Motion ------------------------------------------------------------------------------ */

@keyframes halo-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.28);
    opacity: 0.72;
  }
}

@keyframes beacon {
  0% {
    box-shadow: 0 0 0 0 rgb(22 209 150 / 60%);
  }

  100% {
    box-shadow: 0 0 0 9px rgb(22 209 150 / 0%);
  }
}

@keyframes feed-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

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

