@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;600;700&display=swap");

:root {
  color-scheme: dark;
  --ink: #171817;
  --panel: #202220;
  --line: #343734;
  --muted: #8b918a;
  --paper: #f0f1e9;
  --acid: #c9f270;
  --acid-dark: #779538;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 77% 43%, rgba(201, 242, 112, 0.045), transparent 24rem),
    var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.17;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.page-shell {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 34px 0 28px;
  flex-direction: column;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-family: "DM Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 23px;
  height: 23px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--panel);
}

.brand-mark::before {
  position: absolute;
  top: 8px;
  left: 3px;
  width: 13px;
  height: 4px;
  content: "";
  background: var(--acid);
  box-shadow: inset 3px 0 var(--ink), inset -3px 0 var(--ink);
}

.brand-mark::after {
  position: absolute;
  right: -5px;
  top: 2px;
  width: 6px;
  height: 4px;
  content: "";
  background: var(--acid);
  box-shadow: 3px -3px var(--acid-dark);
}

.hero {
  display: grid;
  align-items: center;
  flex: 1;
  grid-template-columns: minmax(320px, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(30px, 6vw, 90px);
  padding: 48px 0 54px;
}

.copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 600;
  letter-spacing: -0.072em;
  line-height: 0.92;
}

h1 span {
  color: var(--acid);
}

.intro {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: -0.02em;
}

.scene {
  position: relative;
  width: 100%;
  max-width: 590px;
  aspect-ratio: 1.18;
  justify-self: end;
  image-rendering: pixelated;
}

.scene::before {
  position: absolute;
  inset: 10% 3% 8%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
  clip-path: polygon(9% 0, 100% 0, 100% 88%, 91% 100%, 0 100%, 0 11%);
}

.moon {
  position: absolute;
  top: 18%;
  right: 13%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2b2e2b;
  box-shadow: inset -12px -7px #242624;
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #5f655e;
  animation: twinkle 2.6s steps(2, end) infinite;
}

.star::after {
  position: absolute;
  inset: -4px 0 0;
  width: 4px;
  height: 12px;
  content: "";
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  background: inherit;
}

.star-one { top: 26%; left: 17%; }
.star-two { top: 17%; left: 42%; animation-delay: -1.1s; }
.star-three { top: 34%; right: 7%; animation-delay: -1.8s; }

.ground {
  position: absolute;
  right: 6%;
  bottom: 16%;
  left: 5%;
  height: 4px;
  background: #353835;
  box-shadow: 0 5px #1d1f1d;
}

.ground::before,
.ground::after {
  position: absolute;
  height: 4px;
  content: "";
  background: #353835;
}

.ground::before { top: -4px; left: 5%; width: 12%; }
.ground::after { top: 8px; right: 8%; width: 18%; }

.shadow {
  position: absolute;
  z-index: 1;
  bottom: 18%;
  left: 36%;
  width: 126px;
  height: 14px;
  background: #101110;
  transform: skewX(-28deg);
  animation: shadow-breathe 1.8s steps(3, end) infinite;
}

.ninja {
  position: absolute;
  z-index: 4;
  bottom: 20%;
  left: 41%;
  width: 116px;
  height: 174px;
  animation: ninja-idle 1.8s steps(3, end) infinite;
}

.head {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 20px;
  width: 80px;
  height: 72px;
  border: 5px solid #101110;
  background: #292c29;
  box-shadow: inset -8px -8px #202220, inset 5px 5px #343834, 4px 4px 0 #101110;
  clip-path: polygon(
    8px 0, calc(100% - 8px) 0,
    calc(100% - 8px) 4px, calc(100% - 4px) 4px,
    calc(100% - 4px) 8px, 100% 8px,
    100% calc(100% - 12px), calc(100% - 4px) calc(100% - 12px),
    calc(100% - 4px) calc(100% - 4px), calc(100% - 12px) calc(100% - 4px),
    calc(100% - 12px) 100%, 12px 100%,
    12px calc(100% - 4px), 4px calc(100% - 4px),
    4px calc(100% - 12px), 0 calc(100% - 12px),
    0 8px, 4px 8px, 4px 4px, 8px 4px
  );
}

.head::before {
  position: absolute;
  top: 13px;
  left: -5px;
  width: 80px;
  height: 16px;
  content: "";
  background: #111211;
  box-shadow: 8px 4px 0 #111211;
}

.head::after {
  position: absolute;
  right: 5px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  content: "";
  background: #181a18;
  box-shadow: -4px 4px 0 #181a18;
}

.tie {
  position: absolute;
  z-index: -1;
  right: -26px;
  width: 28px;
  height: 8px;
  background: #111211;
  transform-origin: left center;
  animation: tie-wave 0.9s steps(2, end) infinite;
}

.tie::after {
  position: absolute;
  right: -8px;
  width: 8px;
  height: 8px;
  content: "";
  background: #343834;
}

.tie-top { top: 13px; box-shadow: 8px -8px 0 #111211; }
.tie-bottom { top: 25px; right: -34px; box-shadow: 8px 8px 0 #111211; animation-delay: -0.25s; }

.mask-window {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 5px;
  width: 60px;
  height: 20px;
  background: #b0a58d;
  clip-path: polygon(
    0 4px, 8px 4px, 8px 0, 100% 0,
    100% 12px, calc(100% - 8px) 12px,
    calc(100% - 8px) 16px, 0 16px
  );
}

.eye {
  position: absolute;
  top: 7px;
  width: 9px;
  height: 4px;
  background: #121312;
  box-shadow: 4px 4px 0 #6e6658;
}

.eye-left { left: 11px; }
.eye-right { right: 10px; }

.body {
  position: absolute;
  z-index: 3;
  top: 64px;
  left: 27px;
  width: 68px;
  height: 80px;
  background: #242724;
  border: 5px solid #101110;
  box-shadow: inset -8px -4px #1b1d1b, 4px 4px 0 #101110;
  clip-path: polygon(
    12px 0, calc(100% - 8px) 0,
    calc(100% - 8px) 4px, calc(100% - 4px) 4px,
    calc(100% - 4px) 12px, 100% 12px,
    100% 100%, 0 100%, 0 12px, 4px 12px, 4px 4px, 12px 4px
  );
}

.body::after {
  position: absolute;
  right: -5px;
  bottom: 16px;
  left: -5px;
  height: 8px;
  content: "";
  background: var(--acid-dark);
  border-top: 3px solid #101110;
  border-bottom: 3px solid #101110;
}

.arm,
.leg {
  position: absolute;
  z-index: 2;
  background: #242724;
  border: 5px solid #101110;
}

.arm-back {
  top: 79px;
  left: 11px;
  width: 24px;
  height: 64px;
  transform: rotate(36deg);
  box-shadow: inset -5px 0 #1b1d1b, 4px 4px 0 #101110;
}

.arm-front {
  z-index: 5;
  top: 74px;
  right: -2px;
  width: 24px;
  height: 68px;
  transform: rotate(-45deg);
  box-shadow: inset -5px 0 #1b1d1b, 4px 4px 0 #101110;
}

.leg {
  top: 128px;
  width: 28px;
  height: 52px;
  box-shadow: inset -5px 0 #1b1d1b, 4px 4px 0 #101110;
}

.leg-left { left: 26px; transform: rotate(13deg); }
.leg-right { left: 70px; transform: rotate(-24deg); }

.leg::after {
  position: absolute;
  bottom: -5px;
  width: 27px;
  height: 14px;
  content: "";
  background: #111211;
}

.leg-left::after { left: -12px; }
.leg-right::after { right: -15px; }

.sword {
  position: absolute;
  z-index: 6;
  top: 31px;
  right: -8px;
  width: 8px;
  height: 116px;
  background: #d7ddd2;
  border: 3px solid #101110;
  transform: rotate(42deg);
  transform-origin: bottom center;
  box-shadow: inset 2px 0 #777e77;
  animation: sword-glint 1.8s steps(2, end) infinite;
}

.sword::before {
  position: absolute;
  right: -9px;
  bottom: -5px;
  width: 20px;
  height: 7px;
  content: "";
  background: var(--acid);
  border: 3px solid #101110;
}

.sword i {
  position: absolute;
  bottom: -31px;
  left: -3px;
  width: 8px;
  height: 27px;
  background: #414641;
  border: 3px solid #101110;
}

.feed {
  position: absolute;
  z-index: 3;
  width: 54px;
  height: 42px;
  padding: 9px 8px;
  background: #2c302c;
  border: 4px solid #111211;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.34);
}

.feed::before {
  position: absolute;
  top: -8px;
  left: 7px;
  padding: 1px 4px;
  color: var(--acid);
  background: #111211;
  content: "RSS";
  font-family: "DM Mono", monospace;
  font-size: 6px;
  letter-spacing: 0.1em;
}

.feed span {
  display: block;
  width: 100%;
  height: 3px;
  margin-bottom: 4px;
  background: #656b65;
}

.feed span:nth-child(2) { width: 68%; }
.feed span:nth-child(3) { width: 84%; }

.feed-one {
  top: 28%;
  right: 7%;
  animation: incoming-one 3.6s steps(12, end) infinite;
}

.feed-two {
  top: 51%;
  right: 3%;
  animation: incoming-two 4.1s steps(13, end) -1.9s infinite;
}

.feed-three {
  top: 19%;
  right: 34%;
  transform: scale(0.65);
  opacity: 0.45;
  animation: incoming-three 4.6s steps(15, end) -0.7s infinite;
}

.slash {
  position: absolute;
  z-index: 7;
  top: 31%;
  left: 55%;
  width: 150px;
  height: 150px;
  border-top: 6px solid var(--acid);
  border-radius: 50%;
  filter: drop-shadow(0 0 5px rgba(201, 242, 112, 0.55));
  transform: rotate(33deg);
  opacity: 0;
  animation: slash 3.6s steps(5, end) infinite;
}

.impact {
  position: absolute;
  z-index: 8;
  width: 7px;
  height: 7px;
  background: var(--acid);
  opacity: 0;
  box-shadow: 12px -14px var(--acid), 21px 6px #737a72, -10px -12px #737a72;
}

.impact-one { top: 35%; right: 22%; animation: impact 3.6s steps(2, end) infinite; }
.impact-two { top: 57%; right: 17%; animation: impact 4.1s steps(2, end) -1.9s infinite; }

footer {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #676c67;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-pip {
  width: 3px;
  height: 3px;
  background: #464a46;
}

@keyframes twinkle { 50% { opacity: 0.2; } }
@keyframes ninja-idle { 50% { transform: translateY(3px); } }
@keyframes shadow-breathe { 50% { transform: skewX(-28deg) scaleX(0.9); opacity: 0.8; } }
@keyframes tie-wave {
  50% { margin-top: 4px; }
}
@keyframes sword-glint { 48%, 54% { background: var(--acid); } }
@keyframes incoming-one {
  0% { transform: translate(120px, -15px) rotate(7deg); opacity: 0; }
  12% { opacity: 1; }
  70% { transform: translate(0, 0) rotate(-3deg); opacity: 1; }
  74%, 100% { transform: translate(-15px, 18px) rotate(-16deg) scale(0); opacity: 0; }
}
@keyframes incoming-two {
  0% { transform: translate(145px, 25px) rotate(-9deg); opacity: 0; }
  12% { opacity: 0.9; }
  70% { transform: translate(0, 0) rotate(5deg); opacity: 0.9; }
  74%, 100% { transform: translate(-15px, -18px) rotate(18deg) scale(0); opacity: 0; }
}
@keyframes incoming-three {
  0% { transform: translate(150px, -30px) rotate(12deg) scale(0.65); opacity: 0; }
  18% { opacity: 0.45; }
  75% { transform: translate(0, 0) rotate(-4deg) scale(0.65); opacity: 0.45; }
  79%, 100% { transform: translate(-10px, 8px) scale(0); opacity: 0; }
}
@keyframes slash {
  0%, 63% { opacity: 0; transform: rotate(20deg) scale(0.5); }
  68% { opacity: 1; }
  74% { opacity: 0; transform: rotate(43deg) scale(1.1); }
  100% { opacity: 0; }
}
@keyframes impact {
  0%, 69% { opacity: 0; transform: scale(0.3); }
  72% { opacity: 1; transform: scale(1); }
  77%, 100% { opacity: 0; transform: scale(1.4); }
}

@media (max-width: 820px) {
  .page-shell { width: min(100% - 32px, 620px); padding-top: 24px; }
  .hero { grid-template-columns: 1fr; gap: 15px; padding: 64px 0 34px; }
  .scene { width: min(100%, 540px); justify-self: center; }
  h1 { font-size: clamp(48px, 13vw, 76px); }
}

@media (max-width: 470px) {
  .page-shell { width: calc(100% - 24px); }
  .hero { padding-top: 52px; }
  .scene { width: 100%; }
  .intro { max-width: 28ch; }
  footer { justify-content: center; }
}

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