@font-face {
  font-family: "Chakra Petch";
  src: url("/assets/fonts/chakra-petch-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("/assets/fonts/chakra-petch-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Share Tech Mono";
  src: url("/assets/fonts/share-tech-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #050508;
  --cell: #0c0c12;
  --mesh: rgba(184, 255, 46, 0.045);
  --lime: #b8ff2e;
  --lime-dim: rgba(184, 255, 46, 0.55);
  --trap: #ff006e;
  --trap-dim: rgba(255, 0, 110, 0.45);
  --hook: #00f0ff;
  --hook-dim: rgba(0, 240, 255, 0.35);
  --ghost: rgba(184, 255, 46, 0.025);
  --text: #e8e6ef;
  --muted: rgba(232, 230, 239, 0.52);
  --faint: rgba(232, 230, 239, 0.28);
  --line: rgba(184, 255, 46, 0.12);
  --display: "Chakra Petch", system-ui, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;
  --hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  --gutter: clamp(0.75rem, 3vw, 1.25rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
html, body { min-height: 100%; }
body {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text);
  background: var(--void);
  overflow-x: clip;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 0, 110, 0.45); color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--hook);
  outline-offset: 3px;
}

.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 35% at 72% 18%, rgba(255, 0, 110, 0.07), transparent 60%),
    radial-gradient(ellipse 40% 30% at 18% 82%, rgba(0, 240, 255, 0.05), transparent 55%),
    linear-gradient(180deg, #030306 0%, var(--void) 50%, #020204 100%);
}
.mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath fill='none' stroke='rgba(184%2C255%2C46%2C0.07)' stroke-width='0.6' d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z M28 34 L56 50 L56 84 L28 100 L0 84 L0 50 Z'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 5%, transparent 78%);
}

.scan {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  opacity: 0.35;
}

.trap {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding:
    max(var(--gutter), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    max(var(--gutter), env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.anchor-mark {
  position: fixed;
  top: max(var(--gutter), env(safe-area-inset-top));
  right: max(var(--gutter), env(safe-area-inset-right));
  z-index: 5;
  width: 36px;
  height: 36px;
  clip-path: var(--hex);
  background: rgba(12, 12, 18, 0.9);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: filter 0.2s ease;
}
.anchor-mark:hover { filter: drop-shadow(0 0 8px var(--trap)); }
.anchor-mark img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ghost {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ghost-hex,
.ghost-bait {
  position: absolute;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 14rem);
  line-height: 0.85;
  letter-spacing: 0.04em;
  color: var(--ghost);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  user-select: none;
}
.ghost-hex {
  left: max(0.25rem, env(safe-area-inset-left));
  top: 18%;
}
.ghost-bait {
  right: max(0.25rem, env(safe-area-inset-right));
  bottom: 12%;
  color: rgba(255, 0, 110, 0.02);
}

.lattice {
  position: relative;
  z-index: 2;
  width: min(74rem, 100%);
  min-height: calc(100dvh - 2 * var(--gutter));
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 2.4fr) minmax(0, 0.75fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: clamp(0.45rem, 1.2vw, 0.7rem);
  align-content: center;
}

.pane {
  min-width: 0;
  background: rgba(12, 12, 18, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.pane-signal {
  grid-column: 1 / 3;
  grid-row: 1;
  padding: 0.75rem 0.9rem;
}

.telemetry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.45rem 1rem;
}
.telemetry div {
  min-width: 0;
}
.telemetry dt {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.15rem;
}
.telemetry dd {
  font-size: 0.78rem;
  color: var(--lime-dim);
  overflow-wrap: anywhere;
}
.telemetry dd.hot { color: var(--trap); }
.telemetry dd.bar {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  color: var(--hook-dim);
}

.pane-rail {
  display: none;
}

.pane-lure {
  grid-column: 1 / 3;
  grid-row: 2;
  position: relative;
  padding: clamp(0.55rem, 1.5vw, 0.85rem);
  border-color: rgba(184, 255, 46, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 0, 110, 0.06),
    0 0 40px rgba(184, 255, 46, 0.04);
}
.pane-lure .logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.tld-badge {
  position: absolute;
  right: clamp(0.65rem, 2vw, 1rem);
  bottom: clamp(0.65rem, 2vw, 1rem);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 0.7rem + 2cqw, 1.55rem);
  letter-spacing: 0.06em;
  color: var(--trap);
  padding: 0.2rem 0.55rem;
  background: rgba(5, 5, 8, 0.85);
  border: 1px solid var(--trap-dim);
  clip-path: var(--hex);
  min-width: 3.2rem;
  min-height: 2.6rem;
  display: grid;
  place-items: center;
}

.pane-chips {
  grid-column: 3;
  grid-row: 1 / 3;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 0.55rem;
  background: transparent;
  border: none;
}
.hex-chip {
  width: min(100%, 5.5rem);
  aspect-ratio: 1 / 1.12;
  display: grid;
  place-items: center;
  clip-path: var(--hex);
  background:
    linear-gradient(160deg, rgba(184, 255, 46, 0.12), rgba(12, 12, 18, 0.95));
  border: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(0.72rem, 0.55rem + 1cqw, 0.88rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.35rem;
  overflow-wrap: anywhere;
  color: var(--text);
}
.hex-chip.hot {
  color: var(--lime);
  border-color: rgba(184, 255, 46, 0.35);
  box-shadow: 0 0 20px rgba(184, 255, 46, 0.12);
}
.hex-chip span {
  display: block;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 0.15rem;
}

.pane-brief {
  grid-column: 1;
  grid-row: 3;
  padding: 0.85rem 0.9rem;
}
.brief-lines {
  list-style: none;
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--muted);
}
.brief-lines li {
  padding-left: 0.85rem;
  position: relative;
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}
.brief-lines li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--trap);
}

.pane-hook {
  grid-column: 2 / 4;
  grid-row: 3;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  border-color: rgba(255, 0, 110, 0.15);
}
.hook-btn {
  display: inline-grid;
  place-items: center;
  min-width: 9.5rem;
  min-height: 3.2rem;
  padding: 0.65rem 1.35rem;
  clip-path: var(--hex);
  background: linear-gradient(160deg, var(--trap) 0%, #b80055 100%);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(255, 0, 110, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hook-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 36px rgba(255, 0, 110, 0.38);
}
.hook-secondary {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hook-dim);
  text-decoration: none;
}
.hook-secondary:hover { color: var(--hook); }
.ping {
  flex: 1 1 100%;
  font-size: 0.68rem;
  color: var(--faint);
}
.ping a {
  color: var(--lime-dim);
  text-decoration: none;
}
.ping a:hover { color: var(--lime); }

.pane-fine {
  grid-column: 1 / -1;
  grid-row: 4;
  padding: 0.65rem 0.85rem;
  border-color: rgba(232, 230, 239, 0.06);
  background: rgba(5, 5, 8, 0.55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.6rem;
  line-height: 1.5;
  color: var(--faint);
}
.pane-fine .copy { opacity: 0.85; }

@media (min-width: 900px) {
  .lattice {
    grid-template-columns: 2.4rem minmax(0, 1fr) minmax(0, 2fr) 2.4rem minmax(0, 0.8fr);
    grid-template-rows: auto minmax(12rem, 1fr) auto auto;
  }

  .pane-signal { grid-column: 1 / 5; grid-row: 1; }

  .pane-rail {
    display: grid;
    place-items: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.35em;
    color: rgba(184, 255, 46, 0.18);
    background: transparent;
    border: none;
    padding: 0.5rem 0;
  }
  .pane-rail--left { grid-column: 1; grid-row: 2; }
  .pane-rail--right {
    grid-column: 4;
    grid-row: 2;
    color: rgba(255, 0, 110, 0.16);
  }

  .pane-lure { grid-column: 2 / 4; grid-row: 2; }
  .pane-chips { grid-column: 5; grid-row: 1 / 3; }
  .pane-brief { grid-column: 1 / 3; grid-row: 3; }
  .pane-hook { grid-column: 3 / 5; grid-row: 3; }
}

@media (max-width: 899px) {
  .lattice {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    align-content: start;
  }

  .pane-signal,
  .pane-lure,
  .pane-chips,
  .pane-brief,
  .pane-hook,
  .pane-fine {
    grid-column: 1;
    grid-row: auto;
  }

  .pane-chips {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.65rem;
    background: rgba(12, 12, 18, 0.72);
    border: 1px solid var(--line);
  }

  .hex-chip {
    width: calc(33.333% - 0.5rem);
    min-width: 4.5rem;
    flex: 1 1 4.5rem;
  }

  .ghost { display: none; }
}

@media (max-width: 640px) {
  .hex-chip {
    width: calc(50% - 0.35rem);
    flex: 1 1 calc(50% - 0.35rem);
  }
}

.error-trap {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.error-hex {
  width: min(20rem, 100%);
  aspect-ratio: 1 / 1.12;
  clip-path: var(--hex);
  background: rgba(12, 12, 18, 0.92);
  border: 1px solid var(--trap-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  box-shadow: 0 0 50px rgba(255, 0, 110, 0.15);
}
.error-hex img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.error-hex h1 {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--trap);
  margin-bottom: 0.35rem;
}
.error-hex p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.55;
  max-width: 16rem;
}
.error-hex a {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  text-decoration: none;
}
.error-hex a:hover { color: var(--hook); }

@media (prefers-reduced-motion: reduce) {
  .hook-btn { transition: none; }
}
