@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ============================================================
   WESNET DASHBOARD — wesnet.app
   The launcher: a console that is already on. One green light,
   cartridges in the rack, nothing between family and their tap.
   Design system: Knowledge Base/wiki/wesnet-design-system.md
   ============================================================ */

:root {
  --bg: #0d0d0d;
  --hairline: #2a2a2a;
  --text: #e6e6e6;
  --dim: #8a8a8a;
  --faint: #4a4a4a;
  --green: #33ff66;
  --mono: 'IBM Plex Mono', Menlo, monospace;
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  background: linear-gradient(180deg, #131313 0%, var(--bg) 45%);
  min-height: 100vh;
  font-family: var(--mono);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9vh 20px 40px;
}

/* the one breath: glow on, then still */
@keyframes settle {
  from { opacity: 0; }
  to { opacity: 1; }
}

.breath { animation: settle 0.7s ease-out both; }
.breath-2 { animation: settle 0.7s ease-out 0.15s both; }

@media (prefers-reduced-motion: reduce) {
  .breath,
  .breath-2 { animation: none; }
}

/* ---------- chrome ---------- */

header { text-align: center; }

.wordmark {
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 4.2rem);
  letter-spacing: 0.16em;
  font-weight: 400;
  color: var(--green);
  text-shadow: 0 0 24px rgba(51, 255, 102, 0.35);
  line-height: 1;
}

.wordmark .bracket { color: rgba(51, 255, 102, 0.35); }

.sysline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(51, 255, 102, 0.7);
}

/* ---------- the rack ---------- */

.rack {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 7vh;
  width: 100%;
  max-width: 760px;
}

.slot {
  flex: 1 1 300px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tile {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, #181818, #121212);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 3px 0 #050505;
  padding: 34px 26px 24px;
  position: relative;
  overflow: hidden;
}

/* faint scanlines, chrome texture only */
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.014) 0 1px,
    transparent 1px 4px
  );
  pointer-events: none;
}

.tile:hover {
  border-color: var(--ac);
  box-shadow: 0 3px 0 #050505, 0 0 18px var(--ac-soft);
}

.tile:active {
  transform: translateY(3px);
  box-shadow: none;
}

.tile:focus-visible,
.companion:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 3px;
}

.tile svg {
  display: block;
  margin: 6px auto 26px;
  stroke: var(--text);
}

.tile .bar {
  width: 56px;
  height: 4px;
  background: var(--ac);
  margin-bottom: 10px;
}

.tile .name {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.tile .blurb {
  margin-top: 7px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* soon tiles: identity visible, room closed */
.tile-soon svg,
.tile-soon .name,
.tile-soon .blurb {
  opacity: 0.45;
}

.tile-soon .bar {
  opacity: 0.7;
}

.tile-soon:hover {
  border-color: var(--hairline);
  box-shadow: 0 3px 0 #050505;
}

.soon-tag {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ac);
  opacity: 0.85;
}

/* companion key: docked under its parent tile */
.companion {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, #181818, #121212);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 2px 0 #050505;
  padding: 13px 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.companion:hover {
  border-color: var(--ac);
  box-shadow: 0 2px 0 #050505, 0 0 14px var(--ac-soft);
}

.companion:active {
  transform: translateY(2px);
  box-shadow: none;
}

.companion .plus { color: var(--ac); }

.companion .sub {
  color: var(--dim);
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 400;
  flex-basis: 100%;
  padding-left: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .tile:active,
  .companion:active { transform: none; }
}

/* ---------- footer ---------- */

footer {
  margin-top: auto;
  padding-top: 48px;
  width: 100%;
  max-width: 760px;
  display: flex;
  justify-content: center;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--faint);
  text-transform: uppercase;
}

/* ---------- phones ---------- */

@media (max-width: 700px) {
  body { padding-top: 7vh; }

  .rack { margin-top: 5vh; }
}
