:root {
  color-scheme: dark;
  --bg: #0a0e27;
  --panel: rgba(10, 14, 39, 0.9);
  --neon: #0099ff;
  --neon-soft: rgba(0, 153, 255, 0.35);
  --text: #e3f5ff;
  --muted: #6ba3d9;
  --border: rgba(0, 153, 255, 0.25);
  --shadow: 0 0 20px rgba(0, 153, 255, 0.3);
  --focus: 0 0 0 2px rgba(0, 153, 255, 0.6);
  font-family: "Fira Code", "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.65;
  pointer-events: none;
}

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  backdrop-filter: blur(2px);
}

header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(10, 14, 39, 0.85);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon);
  text-shadow: 0 0 12px var(--neon-soft);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

nav a {
  padding: 0.35rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  border-color: var(--neon);
  box-shadow: var(--shadow);
  transform: translateZ(0) scale(1.02);
  outline: none;
}

main {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vw, 4rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 6vw, 6rem) 6rem;
}

section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--neon);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--neon-soft);
}

.hero {
  display: grid;
  gap: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  color: var(--neon);
  text-shadow: 0 0 14px var(--neon-soft);
}

.hero .subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 14, 39, 0.75);
  font-size: 0.85rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.highlight {
  border: 1px solid var(--neon);
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.status::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #0099ff;
  box-shadow: 0 0 10px rgba(0, 153, 255, 0.7);
}

.paw-mark {
  font-size: clamp(3.5rem, 12vw, 7rem);
  line-height: 1;
  text-align: center;
  color: var(--neon);
  text-shadow: 0 0 18px var(--neon-soft);
  margin-bottom: 1rem;
}

.paw-mark-icon {
  width: clamp(3.5rem, 12vw, 7rem);
  height: auto;
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 18px rgba(0, 153, 255, 0.35));
}

.link-grid {
  display: grid;
  gap: 1rem;
}

.link-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(10, 14, 39, 0.75);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--neon);
  box-shadow: var(--shadow);
  transform: translateZ(0) scale(1.02);
  outline: none;
}

.link-card h3 {
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon-soft);
}

.scanline {
  position: relative;
  overflow: hidden;
}

.scanline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 153, 255, 0.04) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  animation: scan 6s linear infinite;
  transform: translateZ(0);
  pointer-events: none;
}

@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  min-height: 60vh;
}

.massive-paw {
  font-size: clamp(8rem, 30vw, 20rem);
  line-height: 1;
  color: var(--neon);
  text-shadow: 0 0 30px var(--neon-soft), 0 0 60px rgba(0, 153, 255, 0.5);
  animation: pulse-glow 2s ease-in-out infinite;
}

.massive-paw-icon {
  width: clamp(8rem, 30vw, 20rem);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(0, 153, 255, 0.5)) drop-shadow(0 0 60px rgba(0, 153, 255, 0.3));
  animation: pulse-glow-scale 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    text-shadow: 0 0 30px var(--neon-soft), 0 0 60px rgba(0, 153, 255, 0.5);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 50px var(--neon-soft), 0 0 100px rgba(0, 153, 255, 0.7);
    transform: scale(1.05);
  }
}

@keyframes pulse-glow-scale {
  0%, 100% {
    filter: drop-shadow(0 0 30px rgba(0, 153, 255, 0.5)) drop-shadow(0 0 60px rgba(0, 153, 255, 0.3));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 50px rgba(0, 153, 255, 0.7)) drop-shadow(0 0 100px rgba(0, 153, 255, 0.5));
    transform: scale(1.05);
  }
}

.hero-content {
  display: grid;
  gap: 1rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  color: var(--neon);
  text-shadow: 0 0 14px var(--neon-soft);
}

.hero-content .subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
