/* home-platform :: root public site
   Owned by Jarvis. Project areas (e.g. /projects/hurricane/) ship their own CSS. */

:root {
  --bg: #05070d;
  --bg-soft: #0b1018;
  --line: rgba(120, 190, 255, 0.14);
  --text: #e8f0fb;
  --muted: #7f8fa6;
  --cyan: #35d6ff;
  --amber: #ffb340;
  --green: #38d996;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient reactor glow behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(720px 480px at 50% -10%, rgba(53, 214, 255, 0.16), transparent 70%),
    radial-gradient(560px 420px at 88% 12%, rgba(255, 179, 64, 0.09), transparent 68%),
    radial-gradient(640px 520px at 6% 96%, rgba(56, 217, 150, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Faint scanline texture. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.016) 0px,
    rgba(255, 255, 255, 0.016) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
}

.shell {
  position: relative;
  z-index: 2;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ---------------------------------------------------------------- header -- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.reactor {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  position: relative;
  box-shadow: 0 0 14px rgba(53, 214, 255, 0.55);
  animation: reactor-pulse 3.4s ease-in-out infinite;
}

.reactor::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.85;
}

@keyframes reactor-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(53, 214, 255, 0.40); }
  50%      { box-shadow: 0 0 22px rgba(53, 214, 255, 0.85); }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 217, 150, 0.35);
  background: rgba(56, 217, 150, 0.08);
  color: var(--green);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* ------------------------------------------------------------------ hero -- */

.hero { padding: 72px 0 56px; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.04;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.hero h1 .accent {
  background: linear-gradient(100deg, var(--cyan), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 62ch;
  margin: 0 0 14px;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.05em;
  background: var(--cyan);
  vertical-align: -2px;
  margin-left: 4px;
  animation: caret 1.05s steps(2) infinite;
}

@keyframes caret {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ----------------------------------------------------------------- cards -- */

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, var(--bg-soft), rgba(11, 16, 24, 0.55));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

a.card:hover,
a.card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(53, 214, 255, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  outline: none;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card .path {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  display: block;
  margin-top: 12px;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.tag.live { color: var(--green); border-color: rgba(56, 217, 150, 0.35); }

/* --------------------------------------------------------------- routing -- */

.routes {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  overflow-x: auto;
}

.routes table { border-collapse: collapse; width: 100%; min-width: 460px; }
.routes td { padding: 7px 14px 7px 0; border-bottom: 1px solid var(--line); }
.routes tr:last-child td { border-bottom: none; }
.routes .r-path { color: var(--cyan); white-space: nowrap; }
.routes .r-desc { color: var(--muted); }
.routes .r-blocked { color: #ff7a7a; white-space: nowrap; }

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

.footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.footer a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--line); }
.footer a:hover { color: var(--cyan); }

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