:root {
  color-scheme: dark;
  --black: #030303;
  --ink: #08090a;
  --charcoal: #141518;
  --ash: #a7a9aa;
  --bone: #eff4f2;
  --muted: #85898d;
  --blood: #a70e18;
  --blood-hot: #e31c2d;
  --glass: rgba(13, 15, 17, 0.54);
  --glass-border: rgba(239, 244, 242, 0.14);
  --glow: rgba(232, 242, 255, 0.42);
  --topbar: 72px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --glass-blur: 16px;
  --smoke-blur: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--black);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #17191b 0%, var(--black) 54%);
  color: var(--bone);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  content: "";
  background: #030303;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.noise,
.scanlines,
.ash-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  z-index: 8;
  opacity: 0.08;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.16) 0 1px, transparent 1px),
    radial-gradient(circle at 45% 75%, rgba(255,255,255,0.12) 0 1px, transparent 1px);
  background-size: 13px 17px, 19px 23px, 31px 29px;
  animation: grain 600ms steps(2) infinite;
}

.scanlines {
  z-index: 9;
  opacity: 0.16;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.06) 0,
    rgba(255,255,255,0.06) 1px,
    transparent 1px,
    transparent 4px
  );
}

.ash-field {
  z-index: 6;
  opacity: 0.42;
  background-image:
    radial-gradient(circle, rgba(238,238,228,0.75) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(180,180,175,0.48) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255,255,255,0.42) 0 0.8px, transparent 1.5px);
  background-position: 10% 120%, 45% 110%, 80% 130%;
  background-size: 120px 140px, 180px 220px, 90px 160px;
  animation: ashDrift 18s linear infinite;
}

.topbar {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(5, 6, 7, 0.58);
  box-shadow: 0 20px 70px rgba(0,0,0,0.38);
  backdrop-filter: blur(var(--glass-blur)) saturate(125%);
}

.brand {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.16rem, 6vw, 1.55rem);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 20px rgba(255,255,255,0.15);
}

.brand i {
  color: var(--blood-hot);
  font-style: normal;
}

.nav-links {
  display: none;
}

.audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--bone);
  font: 700 0.72rem/1 Inter, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.audio-toggle[aria-pressed="true"] {
  border-color: rgba(227,28,45,0.55);
  box-shadow: 0 0 26px rgba(227,28,45,0.23);
}

.equalizer {
  display: inline-grid;
  grid-template-columns: repeat(3, 3px);
  align-items: end;
  width: 15px;
  height: 14px;
  gap: 3px;
}

.equalizer i {
  display: block;
  height: 38%;
  background: var(--bone);
  transform-origin: bottom;
}

.audio-toggle[aria-pressed="true"] .equalizer i {
  animation: equalize 780ms var(--ease) infinite alternate;
}

.audio-toggle[aria-pressed="true"] .equalizer i:nth-child(2) {
  animation-delay: 130ms;
}

.audio-toggle[aria-pressed="true"] .equalizer i:nth-child(3) {
  animation-delay: 260ms;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--topbar) + max(18px, env(safe-area-inset-top))) 18px 28px;
}

.hero-bg {
  position: absolute;
  inset: -7vh -7vw;
  z-index: -5;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.32) 45%, rgba(0,0,0,0.9) 100%),
    linear-gradient(105deg, rgba(0,0,0,0.74) 0%, transparent 48%, rgba(0,0,0,0.5) 100%),
    url("cover.png") center / cover no-repeat;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.32) 45%, rgba(0,0,0,0.9) 100%),
    linear-gradient(105deg, rgba(0,0,0,0.74) 0%, transparent 48%, rgba(0,0,0,0.5) 100%),
    url("cover-mobile-lite.jpg") center / cover no-repeat;
  transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -8px), 0) scale(1.035);
  animation: cinematicZoom 18s var(--ease) infinite alternate;
  will-change: transform;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 74% 42%, rgba(167,14,24,0.28), transparent 28%),
    radial-gradient(circle at 18% 68%, rgba(231,238,242,0.13), transparent 22%),
    linear-gradient(to top, #030303 0%, rgba(3,3,3,0.1) 42%, transparent 100%);
}

.smoke {
  position: absolute;
  z-index: -1;
  width: 100vw;
  height: 54vh;
  filter: blur(var(--smoke-blur));
  opacity: 0.18;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.3), transparent 36%),
    radial-gradient(ellipse at 62% 44%, rgba(190,198,201,0.18), transparent 42%),
    radial-gradient(ellipse at 90% 66%, rgba(255,255,255,0.16), transparent 35%);
  mix-blend-mode: screen;
  will-change: transform;
}

.smoke-one {
  top: 22%;
  left: -20%;
  animation: smokeMove 16s linear infinite;
}

.smoke-two {
  right: -35%;
  bottom: 8%;
  animation: smokeMove 22s linear infinite reverse;
}

.red-pulse {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(227,28,45,0.34), transparent 67%);
  filter: blur(12px);
  opacity: 0.5;
  animation: redPulse 5s var(--ease) infinite;
}

.red-pulse-a {
  width: 46vw;
  height: 46vw;
  right: -16vw;
  top: 18vh;
}

.red-pulse-b {
  width: 34vw;
  height: 34vw;
  left: -10vw;
  bottom: 20vh;
  animation-delay: 1.8s;
}

.jp-overlay {
  position: absolute;
  z-index: 2;
  color: rgba(239,244,242,0.52);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-shadow: 0 0 18px rgba(239,244,242,0.18);
  pointer-events: none;
}

.jp-left {
  top: 16%;
  left: 22px;
  color: rgba(239,244,242,0.36);
  font-size: 1.05rem;
}

.jp-right {
  top: 34%;
  right: 18px;
  color: rgba(227,28,45,0.58);
  font-size: 1.5rem;
}

.jp-low {
  left: 20px;
  bottom: 17%;
  color: rgba(227,28,45,0.72);
  font-size: 1.25rem;
}

.hero-content {
  align-self: end;
  width: min(100%, 650px);
  padding: 30vh 0 2vh;
}

.kicker {
  margin: 0 0 10px;
  color: var(--blood-hot);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(227,28,45,0.45);
}

.title-flicker {
  display: grid;
  gap: 0;
  margin: 0;
  max-width: 9ch;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(4.35rem, 22vw, 8.6rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow:
    0 0 4px rgba(255,255,255,0.32),
    0 0 32px rgba(236,244,255,0.18),
    2px 0 0 rgba(227,28,45,0.5);
  animation: titleFlicker 6.2s steps(1) infinite;
}

.subtitle {
  max-width: 36rem;
  margin: 18px 0 0;
  color: rgba(239,244,242,0.88);
  font-size: clamp(1rem, 4vw, 1.25rem);
  line-height: 1.55;
  text-shadow: 0 2px 26px rgba(0,0,0,0.8);
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.button:active {
  transform: scale(0.985);
}

.button-primary {
  border: 1px solid rgba(227,28,45,0.88);
  background: linear-gradient(135deg, #a70e18, #e31c2d 52%, #6b090e);
  box-shadow: 0 18px 48px rgba(167,14,24,0.36);
}

.button-ghost {
  border: 1px solid rgba(239,244,242,0.2);
  background: rgba(7,8,9,0.42);
  backdrop-filter: blur(var(--glass-blur));
}

.hero-meter {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, 18px);
  gap: 5px;
  opacity: 0.55;
}

.hero-meter span {
  height: 2px;
  background: var(--bone);
  box-shadow: 0 0 12px rgba(255,255,255,0.5);
  transform-origin: left;
  animation: meter 1.4s var(--ease) infinite alternate;
}

.hero-meter span:nth-child(2) { animation-delay: 160ms; }
.hero-meter span:nth-child(3) { animation-delay: 320ms; }
.hero-meter span:nth-child(4) { animation-delay: 480ms; }

.section {
  position: relative;
  padding: 74px 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(227,28,45,0.11), transparent 34%),
    linear-gradient(to bottom, #030303, #090a0c 48%, #030303);
}

.section-heading {
  width: min(100%, 980px);
  margin: 0 auto 20px;
}

.section h2,
.platform-card h3 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

.section h2 {
  font-size: clamp(2.6rem, 14vw, 5.4rem);
  line-height: 0.9;
}

.platform-grid {
  display: grid;
  width: min(100%, 980px);
  margin: 0 auto;
  gap: 14px;
}

.glass-card {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    var(--glass);
  box-shadow: 0 30px 90px rgba(0,0,0,0.38);
  backdrop-filter: blur(var(--glass-blur)) saturate(112%);
}

.platform-card {
  display: grid;
  min-height: 196px;
  align-content: space-between;
  gap: 28px;
  padding: 22px;
  overflow: hidden;
  position: relative;
}

.platform-card::before {
  position: absolute;
  inset: -45% auto auto -20%;
  width: 70%;
  aspect-ratio: 1;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(227,28,45,0.22), transparent 68%);
  filter: blur(14px);
}

.platform-label {
  margin: 0 0 8px;
  color: var(--blood-hot);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.platform-card h3 {
  font-size: 2.15rem;
  line-height: 0.96;
}

.platform-card p:not(.platform-label),
.story-card p:not(.kicker) {
  color: rgba(239,244,242,0.72);
  line-height: 1.65;
}

.text-link {
  position: relative;
  justify-self: start;
  color: var(--bone);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-link::after {
  display: inline-block;
  margin-left: 10px;
  color: var(--blood-hot);
  content: ">";
  transition: transform 180ms var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

.story-section {
  padding-bottom: max(90px, env(safe-area-inset-bottom));
}

.story-card {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 24px;
}

.story-card h2 {
  max-width: 10ch;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.story-tags span {
  padding: 8px 10px;
  border: 1px solid rgba(239,244,242,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: rgba(239,244,242,0.7);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (min-width: 560px) {
  .cta-row {
    grid-template-columns: repeat(2, minmax(0, 210px));
  }
}

@media (min-width: 760px) {
  :root {
    --glass-blur: 18px;
    --smoke-blur: 18px;
  }

  .topbar {
    left: 24px;
    right: 24px;
    padding-left: 20px;
  }

  .nav-links {
    display: flex;
    gap: 18px;
    color: rgba(239,244,242,0.72);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  .hero {
    min-height: 100vh;
    padding-inline: clamp(28px, 5vw, 72px);
  }

  .hero-bg {
    inset: -4vh -3vw;
    background:
      linear-gradient(to bottom, rgba(0,0,0,0.03), rgba(0,0,0,0.3) 62%, rgba(0,0,0,0.9) 100%),
      linear-gradient(90deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.15) 52%, rgba(0,0,0,0.2) 100%),
      url("cover.png") center / contain no-repeat;
    background:
      linear-gradient(to bottom, rgba(0,0,0,0.03), rgba(0,0,0,0.3) 62%, rgba(0,0,0,0.9) 100%),
      linear-gradient(90deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.15) 52%, rgba(0,0,0,0.2) 100%),
      url("cover-desktop.jpg") center / contain no-repeat;
  }

  .hero-content {
    padding-top: 24vh;
  }

  .title-flicker {
    max-width: 11ch;
    font-size: clamp(6.6rem, 11vw, 11rem);
  }

  .platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section {
    padding-inline: 28px;
  }
}

@media (max-width: 759px), (pointer: coarse) {
  :root {
    --glass-blur: 8px;
    --smoke-blur: 6px;
  }

  .noise {
    opacity: 0.045;
    animation-duration: 1200ms;
  }

  .scanlines {
    opacity: 0.1;
  }

  .ash-field {
    opacity: 0.24;
    background-size: 170px 210px, 260px 320px, 150px 230px;
    animation-duration: 34s;
  }

  .smoke {
    height: 38vh;
    opacity: 0.12;
  }

  .smoke-two {
    display: none;
  }

  .red-pulse {
    filter: blur(6px);
    opacity: 0.34;
  }

  .hero-bg {
    animation-duration: 28s;
    will-change: auto;
  }

  .glass-card,
  .topbar,
  .button-ghost {
    backdrop-filter: blur(var(--glass-blur));
  }
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
  }

  .button-ghost:hover {
    border-color: rgba(239,244,242,0.34);
    background: rgba(255,255,255,0.08);
  }
}

@keyframes cinematicZoom {
  from { transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -8px), 0) scale(1.035); }
  to { transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -8px), 0) scale(1.095); }
}

@keyframes smokeMove {
  from { transform: translate3d(-8%, 0, 0) scale(1); }
  50% { transform: translate3d(10%, -7%, 0) scale(1.12); }
  to { transform: translate3d(28%, 2%, 0) scale(1.04); }
}

@keyframes ashDrift {
  from { background-position: 10% 120%, 45% 110%, 80% 130%; }
  to { background-position: 16% -20%, 40% -10%, 84% -30%; }
}

@keyframes redPulse {
  0%, 100% { transform: scale(0.86); opacity: 0.26; }
  48% { transform: scale(1.08); opacity: 0.58; }
}

@keyframes titleFlicker {
  0%, 8%, 10%, 13%, 78%, 100% { opacity: 1; filter: none; }
  9%, 12% { opacity: 0.74; filter: blur(0.8px); }
  79% { text-shadow: -2px 0 0 rgba(227,28,45,0.65), 2px 0 0 rgba(255,255,255,0.26); }
}

@keyframes grain {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(2%, -2%, 0); }
}

@keyframes equalize {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

@keyframes meter {
  from { transform: scaleX(0.18); opacity: 0.4; }
  to { transform: scaleX(1); opacity: 0.95; }
}

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

  .hero-bg {
    transform: none;
  }
}
