/* Wesley shared site/dashboard vibe */
:root {
  --bg: #07070a;
  --bg2: #0c0c13;
  --panel: rgba(18, 18, 27, 0.76);
  --panel2: rgba(25, 25, 36, 0.78);
  --text: #f4f4f8;
  --muted: #a4a4b7;
  --dim: #737387;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #8b5cf6;
  --accent2: #22d3ee;
  --green: #22c55e;
  --red: #fb7185;
  --yellow: #facc15;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.22), transparent 34rem),
    radial-gradient(circle at 78% 20%, rgba(34, 211, 238, 0.12), transparent 31rem),
    radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.09), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  animation: gridMove 18s linear infinite;
  z-index: -3;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,0.025), transparent 1px);
  background-size: 100% 4px;
  opacity: 0.16;
  z-index: 100;
  mix-blend-mode: overlay;
}
@keyframes gridMove { from { transform: translateY(0); } to { transform: translateY(46px); } }

canvas#stars {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
}
.cursor-glow {
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 62%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -2;
  opacity: 0.9;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.shell {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 7, 10, 0.72);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 25%, #ffffff, transparent 12%),
    linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.52);
  animation: float 4s ease-in-out infinite;
}
nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}
nav a {
  color: var(--muted);
  font-size: 13px;
  padding: 9px 13px;
  border-radius: 999px;
  transition: 0.2s ease;
}
nav a:hover, nav a.active {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}
.hero {
  padding: 76px 0 46px;
}
.kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(139, 92, 246, 0.34);
  border-radius: 999px;
  color: #ddd6fe;
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.14);
  font-size: 13px;
  margin-bottom: 22px;
}
.pulse, .status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
  animation: pulse 1.65s ease-in-out infinite;
}
.status-dot.down { background: var(--red); box-shadow: 0 0 16px var(--red); }
.status-dot.warn { background: var(--yellow); box-shadow: 0 0 16px var(--yellow); }
h1 {
  font-size: clamp(3.2rem, 9vw, 8rem);
  line-height: 0.82;
  letter-spacing: -0.12em;
  max-width: 980px;
}
h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}
h3 {
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}
.gradient-text {
  background: linear-gradient(120deg, #ffffff, #c4b5fd 38%, #67e8f9 78%, #ffffff);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}
.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.85;
  max-width: 780px;
  margin-top: 26px;
}
.section {
  padding: 70px 0;
  border-top: 1px solid var(--border);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.eyebrow {
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 13px;
}
.section-head p:last-child {
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card, .panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.028)),
    var(--panel);
  box-shadow: 0 24px 70px rgba(0,0,0,0.22);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  transform-style: preserve-3d;
}
.card::before, .panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(139,92,246,0.22), transparent 32%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.card:hover, .panel:hover {
  border-color: rgba(139,92,246,0.75);
  box-shadow: 0 28px 90px rgba(139,92,246,0.14);
}
.card:hover::before, .panel:hover::before { opacity: 1; }
.card p, .panel p, li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}
.list { list-style: none; display: grid; gap: 0; }
.list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.list li:last-child { border-bottom: none; }
.list b { color: var(--text); font-weight: 700; text-align: right; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  color: #ddd6fe;
  font-size: 12px;
  border: 1px solid rgba(139,92,246,0.28);
  background: rgba(139,92,246,0.09);
  border-radius: 999px;
  padding: 7px 10px;
}
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn, button, .button-link {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 14px;
  padding: 11px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn.primary {
  border-color: rgba(139, 92, 246, 0.72);
  background: linear-gradient(135deg, rgba(139,92,246,0.96), rgba(34,211,238,0.74));
}
.btn::before, button::before, .button-link::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-105%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  transition: transform 0.52s ease;
}
.btn:hover, button:hover, .button-link:hover {
  transform: translateY(-2px);
  border-color: rgba(139,92,246,0.82);
  box-shadow: 0 16px 45px rgba(139,92,246,0.12);
}
.btn:hover::before, button:hover::before, .button-link:hover::before { transform: translateX(105%); }
button:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.danger { border-color: rgba(251, 113, 133, 0.34); }
.danger:hover { border-color: rgba(251, 113, 133, 0.85); box-shadow: 0 16px 45px rgba(251, 113, 133, 0.13); }
.stat {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.06em;
  margin: 10px 0 6px;
}
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.bar {
  height: 8px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 14px;
}
.fill {
  height: 100%;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.45);
}
.terminal {
  background: rgba(0,0,0,.28);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-wrap;
  overflow: auto;
}
input, select, textarea {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(18,18,27,.72);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
  width: 100%;
}
textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(139,92,246,0.75);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.10);
}
.controls { display: flex; gap: 10px; margin-bottom: 16px; }
.table {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.row {
  display: grid;
  grid-template-columns: 1.3fr .55fr .85fr;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: none; }
.row:hover { background: rgba(255,255,255,0.035); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(10px);
  z-index: 200;
}
.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.16s ease;
}
.modal {
  width: min(780px, 100%);
  max-height: 86vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 22px;
  background:
    radial-gradient(circle at 80% 10%, rgba(34,211,238,0.10), transparent 34%),
    radial-gradient(circle at 12% 80%, rgba(139,92,246,0.18), transparent 34%),
    rgba(9, 9, 14, 0.94);
  box-shadow: 0 34px 120px rgba(0,0,0,0.55);
  animation: modalUp 0.2s ease;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.toast-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}
.toast {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  color: var(--text);
  animation: toastIn 0.2s ease;
  font-size: 13px;
}
.toast.ok { border-color: rgba(34,197,94,0.35); }
.toast.warn { border-color: rgba(250,204,21,0.35); }
.toast.bad { border-color: rgba(251,113,133,0.35); }
.timeline { position: relative; display: grid; gap: 14px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(var(--accent), transparent);
}
.timeline-item { position: relative; padding-left: 46px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #09090b;
  border: 1px solid rgba(139,92,246,0.8);
  box-shadow: 0 0 18px rgba(139,92,246,0.38);
}
.timeline-item strong { display: block; margin-bottom: 4px; }
.node-map {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: center;
}
.node {
  text-align: center;
  min-height: 118px;
  display: grid;
  place-items: center;
}
.arrow {
  color: var(--muted);
  text-align: center;
  font-size: 28px;
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
footer {
  color: var(--dim);
  text-align: center;
  padding: 42px 0;
  border-top: 1px solid var(--border);
}
@keyframes shimmer { from { background-position: 0% center; } to { background-position: 220% center; } }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.35);opacity:.55} }
@keyframes float { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-5px) rotate(3deg)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes modalUp { from{opacity:0;transform:translateY(14px) scale(.985)} to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes toastIn { from{opacity:0;transform:translateX(16px)} to{opacity:1;transform:translateX(0)} }

@media (max-width: 960px) {
  .grid, .grid.two, .grid.four { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p:last-child { margin-top: 18px; }
  .node-map { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); }
}
@media (max-width: 720px) {
  .nav { flex-direction: column; align-items: flex-start; padding: 18px 0; }
  nav { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .controls { flex-direction: column; }
  .row { grid-template-columns: 1fr; }
  .actions { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
