:root {
  --bg: #06080e;
  --surface: rgba(14, 20, 36, 0.78);
  --surface-hover: rgba(21, 30, 52, 0.94);
  --border: rgba(148, 163, 184, 0.16);
  --border-glow: rgba(129, 140, 248, 0.55);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #818cf8;
  --accent-2: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;
}

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

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 35%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -110px;
  left: -80px;
  background: #4f46e5;
}

.orb-2 {
  width: 360px;
  height: 360px;
  bottom: -90px;
  right: -60px;
  background: #0891b2;
  animation-delay: -6s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(36px, 28px) scale(1.08); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
  animation: fadeUp 0.5s ease-out both;
}

.identity-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(129, 140, 248, 0.32);
  font-size: 13px;
  color: #e2e8f0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: pulseDot 2.2s infinite ease-in-out;
}

.gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.28), rgba(34, 211, 238, 0.16));
  border: 1px solid rgba(129, 140, 248, 0.45);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.gh-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  box-shadow: 0 10px 24px -10px rgba(34, 211, 238, 0.45);
}

header {
  margin-bottom: 42px;
  animation: fadeUp 0.6s ease-out both;
}

.kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  background: linear-gradient(120deg, #ffffff 15%, #a5b4fc 55%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 60ch;
  line-height: 1.65;
}

.subtitle strong {
  color: #e2e8f0;
  font-weight: 600;
}

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

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s ease,
              background 0.28s ease,
              box-shadow 0.28s ease;
  animation: fadeUp 0.65s ease-out both;
}

.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.16s; }

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(129, 140, 248, 0.16),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover .card-glow {
  opacity: 1;
}

.card:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  border-color: var(--border-glow);
  box-shadow: 0 18px 40px -15px rgba(79, 70, 229, 0.35);
}

.screen {
  position: relative;
  height: 142px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(145deg, #0c1222 0%, #111b33 100%);
  margin-bottom: 18px;
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.win-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}

.status-badge {
  margin-left: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 5px;
}

.status-badge.live {
  color: var(--ok);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.status-badge.ready {
  color: var(--accent);
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.status-badge.wip {
  color: var(--warn);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.screen-route {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Mockup 1: RPS.IO Cards */
.mockup-rps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 82px;
}

.rps-card {
  width: 44px;
  height: 60px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 14px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.rps-card.active {
  color: #ffffff;
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.42), rgba(34, 211, 238, 0.22));
  border-color: rgba(129, 140, 248, 0.75);
  transform: translateY(-4px);
}

.card:hover .rps-card:nth-child(1) { transform: rotate(-7deg) translateY(-2px); }
.card:hover .rps-card:nth-child(2) { transform: translateY(-9px) scale(1.06); }
.card:hover .rps-card:nth-child(3) { transform: rotate(7deg) translateY(-2px); }

/* Mockup 2: Dashboard Bars */
.mockup-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: end;
  height: 76px;
  padding: 0 8px;
}

.bar {
  border-radius: 6px;
  background: rgba(129, 140, 248, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.32);
  transition: height 0.35s ease, background 0.35s ease;
}

.bar.b1 { height: 32px; }
.bar.b2 { height: 56px; background: linear-gradient(180deg, rgba(129, 140, 248, 0.38), rgba(34, 211, 238, 0.16)); }
.bar.b3 { height: 42px; }
.bar.b4 { height: 64px; background: linear-gradient(180deg, rgba(34, 211, 238, 0.35), rgba(129, 140, 248, 0.15)); }

.card:hover .bar.b1 { height: 44px; }
.card:hover .bar.b3 { height: 58px; }

/* Mockup 3: Pixel / Canvas Grid */
.mockup-canvas {
  display: grid;
  place-items: center;
  height: 82px;
}

.px-grid {
  display: grid;
  grid-template-columns: repeat(5, 14px);
  gap: 5px;
}

.px-grid span {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: background 0.3s ease, transform 0.3s ease;
}

.px-grid span.lit {
  background: rgba(34, 211, 238, 0.34);
  border-color: rgba(34, 211, 238, 0.65);
}

.card:hover .px-grid span.lit {
  background: rgba(129, 140, 248, 0.55);
  border-color: #a5b4fc;
  transform: scale(1.08);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arrow {
  color: var(--muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.card:hover .arrow {
  transform: translateX(4px);
  color: var(--accent-2);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.14);
  padding: 3px 8px;
  border-radius: 6px;
}

.card.placeholder {
  opacity: 0.76;
  border-style: dashed;
}

footer {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mockup: lolArchive Patch & Spell Inspector */
.mockup-archive {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  height: 82px;
  padding: 2px 4px;
}

.archive-patch {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  opacity: 0.9;
}

.archive-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.archive-row span {
  font-weight: 700;
  color: var(--accent);
}

.archive-row i {
  font-style: normal;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-row.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.24), rgba(34, 211, 238, 0.1));
  border-color: rgba(129, 140, 248, 0.5);
  color: #f8fafc;
}

.card:hover .archive-row.active {
  transform: translateX(3px);
  border-color: var(--accent-2);
}

.card:hover .archive-row:nth-child(2) {
  transform: translateX(1px);
}
