:root {
  --bg: #050608;
  --ink: #f8f9fb;
  --muted: #b8bec8;
  --panel: rgba(10, 12, 15, 0.92);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #f5f7fa;
  --accent-2: #78b8ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(120, 184, 255, 0.12), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(120, 184, 255, 0.1), transparent 28%),
    linear-gradient(162deg, #0a0c10 0%, #030304 52%, #0f1013 100%);
  font-family: "Zen Kaku Gothic New", sans-serif;
  position: relative;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
}

.edge-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

.edge-glow::before,
.edge-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.edge-glow::before {
  background:
    linear-gradient(to right, transparent 5%, rgba(120, 184, 255, 1) 50%, transparent 95%) top / 100% 2px no-repeat,
    linear-gradient(to right, transparent 5%, rgba(120, 184, 255, 1) 50%, transparent 95%) bottom / 100% 2px no-repeat,
    linear-gradient(to bottom, transparent 5%, rgba(120, 184, 255, 1) 50%, transparent 95%) left / 2px 100% no-repeat,
    linear-gradient(to bottom, transparent 5%, rgba(120, 184, 255, 1) 50%, transparent 95%) right / 2px 100% no-repeat;
  opacity: 1;
  box-shadow:
    inset 0 0 36px rgba(120, 184, 255, 0.34),
    0 0 42px rgba(120, 184, 255, 0.22);
}

.edge-glow::after {
  background:
    linear-gradient(to right, transparent 0, rgba(120, 184, 255, 0.7) 50%, transparent 100%) top / 100% 28px no-repeat,
    linear-gradient(to right, transparent 0, rgba(120, 184, 255, 0.7) 50%, transparent 100%) bottom / 100% 28px no-repeat,
    linear-gradient(to bottom, transparent 0, rgba(120, 184, 255, 0.7) 50%, transparent 100%) left / 28px 100% no-repeat,
    linear-gradient(to bottom, transparent 0, rgba(120, 184, 255, 0.7) 50%, transparent 100%) right / 28px 100% no-repeat;
  filter: blur(14px);
  opacity: 0.96;
  animation: edgePulse 3.8s ease-in-out infinite;
}

@keyframes edgePulse {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}

.site-header,
.site-footer,
main {
  position: relative;
  z-index: 1;
}

.site-header,
.site-footer,
main {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.logo {
  font-family: "Oswald", sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.07em;
  color: var(--ink);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a,
.footer-links a,
.text-link {
  color: #d8dbe2;
  text-decoration: none;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  padding: 3.7rem 0 1.4rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.1rem;
  align-items: stretch;
}

.eyebrow {
  color: #96c9ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.8rem, 8vw, 6rem);
  letter-spacing: 0.03em;
  line-height: 0.9;
  margin: 0.3rem 0 1.1rem;
  text-transform: uppercase;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.14rem);
  line-height: 1.8;
}

.hero-main {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 20px);
  border-radius: 20px;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.cta-row {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 0.75rem 1.35rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.btn-primary {
  background: linear-gradient(125deg, #ffffff, #d6dbe3);
  color: #0a0e12;
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}

.monster-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #080a0d 0%, #000000 100%);
  position: relative;
  min-height: 330px;
  overflow: hidden;
}

.monster-face {
  position: absolute;
  width: 78%;
  max-width: 320px;
  height: 300px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.monster-brow {
  position: absolute;
  width: 58px;
  height: 14px;
  border-radius: 999px;
  background: #f2f4f7;
  top: 28px;
}

.brow-left {
  left: 48px;
}

.brow-right {
  right: 48px;
}

.monster-eye-shell {
  position: absolute;
  width: 66px;
  height: 104px;
  border-radius: 44px;
  background: #f8fafc;
  top: 92px;
  box-shadow: inset 0 -8px 18px rgba(12, 16, 24, 0.08);
}

.monster-eye-shell.eye-left {
  left: 56px;
}

.monster-eye-shell.eye-right {
  right: 56px;
}

.monster-pupil {
  position: absolute;
  width: 20px;
  height: 36px;
  border-radius: 999px;
  background: #030406;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.monster-mouth {
  position: absolute;
  width: 90px;
  height: 5px;
  border-radius: 999px;
  background: #f2f4f7;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  opacity: 0.92;
}

.panel {
  margin: 1.2rem 0 1.5rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%);
}

.panel h2 {
  display: inline-flex;
  align-items: center;
  gap: 0;
  letter-spacing: 0.01em;
}

h2 {
  margin-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.download-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    linear-gradient(0deg, rgba(120, 184, 255, 0.09), rgba(120, 184, 255, 0));
}

.download-card h3 {
  margin: 0.35rem 0 0.6rem;
}

.status-note {
  margin-top: 0.9rem;
  color: var(--muted);
}

.is-disabled {
  opacity: 0.65;
  pointer-events: none;
  cursor: default;
}

.feature-grid article {
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    linear-gradient(0deg, rgba(120, 184, 255, 0.09), rgba(120, 184, 255, 0));
  border-radius: 14px;
  padding: 1rem;
}

.feature-grid p,
.doc p,
.doc li,
.panel p {
  color: var(--muted);
  line-height: 1.75;
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.link-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  position: relative;
}

.link-card::before,
.link-card::after {
  content: "";
  position: absolute;
  top: 0.62rem;
  width: 38px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.link-card::before {
  left: 0.74rem;
}

.link-card::after {
  right: 0.74rem;
}

.link-card:hover {
  border-color: #96c9ff;
  transform: translateY(-3px);
  background: linear-gradient(140deg, rgba(120, 184, 255, 0.2), rgba(255, 255, 255, 0.03));
}

.link-card .label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #96c9ff;
  margin: 0.32rem 0 0.45rem;
}

.link-card strong {
  display: block;
  margin-bottom: 0.22rem;
}

.site-footer {
  padding: 1.8rem 0 2.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.subpage .doc {
  width: min(880px, 92vw);
  margin: 2rem auto;
  padding: 1.3rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  position: relative;
}

.subpage .doc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 46%);
}

.doc ul,
.doc ol {
  padding-left: 1.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: revealIn 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero,
#about {
  animation-delay: 0.08s;
}

#links {
  animation-delay: 0.14s;
}

#report {
  animation-delay: 0.2s;
}

@keyframes revealIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 850px) {
  .hero,
  .feature-grid,
  .download-grid,
  .link-cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
