/* Battle Koi marketing site — single-screen pond + overlay copy.
   The canvas is the entire viewport. Copy floats over the deep-water
   band in the middle, intentionally faded so it reads as "below the
   surface" rather than punched on top. */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #e8eef4;
}

#canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  z-index: 0;
}

#surface {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none; /* canvas underneath stays interactive */
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  padding: 6vh 24px;
}

/* === HERO ============================================================ */
.hero {
  text-align: center;
  pointer-events: none;
  align-self: end;
  padding-bottom: 4vh;
}

.hero h1 {
  font-family: serif;
  font-weight: 400;
  font-size: clamp(48px, 9vw, 128px);
  letter-spacing: 0.08em;
  color: rgba(220, 232, 248, 0.78);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.15),
    0 0 24px rgba(80, 130, 180, 0.25),
    0 0 80px rgba(40, 70, 110, 0.4);
  /* Subtle vertical "wet" gradient for surface-tension feel */
  background: linear-gradient(180deg,
    rgba(255,255,255,0.95) 0%,
    rgba(180,210,235,0.85) 45%,
    rgba(140,180,210,0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .kanji {
  font-family: serif;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: 0.4em;
  color: rgba(180, 200, 220, 0.45);
  margin-top: 8px;
  padding-left: 0.4em; /* compensate for kanji's right-heavy weight */
}

/* === PITCH (under-the-water marketing copy) ========================= */
.pitch {
  text-align: center;
  max-width: 540px;
  pointer-events: none;
  align-self: center;
}

.pitch p {
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(210, 225, 240, 0.6);
  margin: 0 0 8px;
  text-shadow: 0 0 12px rgba(0, 20, 40, 0.6);
}

.pitch p:first-child {
  font-size: clamp(13px, 1.2vw, 14px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200, 220, 240, 0.4);
  margin-bottom: 16px;
}

/* === CTA ============================================================= */
.cta {
  align-self: end;
  text-align: center;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.download {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 12px 24px 12px 18px;
  border: 1px solid rgba(220, 235, 250, 0.35);
  border-radius: 6px;
  text-decoration: none;
  color: rgba(230, 240, 250, 0.92);
  background: rgba(8, 18, 30, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.25s ease;
  cursor: pointer;
}

.download:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(20, 40, 60, 0.65);
  color: #fff;
  transform: translateY(-1px);
}

.download-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}

.download-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}

.download-line {
  font-size: 14px;
  letter-spacing: 0.4em;
  font-weight: 600;
}

.download-platform {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(220, 235, 250, 0.55);
  text-transform: uppercase;
}

/* === Mobile ========================================================== */
@media (max-width: 600px), (pointer: coarse) {
  #surface { padding: 4vh 16px; }
  .pitch { max-width: 90vw; }
  .pitch p { line-height: 1.6; }
}

/* === noscript fallback =============================================== */
.no-js {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  background: #050a12;
  z-index: 100;
}
.no-js h1 { font-size: 48px; margin-bottom: 16px; }
.no-js a { color: #88bbdd; }
