/* Classic Ingress landing page, modernized for responsive browsers. */
@font-face {
  font-family: "Coda";
  src: url("../ttf/coda_regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  color-scheme: dark;
  --cyan: #11ecf7;
  --cyan-muted: #00c5cf;
  --yellow: #fec80c;
  --ink: #020a0c;
  --band: rgba(0, 0, 0, 0.72);
  --line: rgba(17, 236, 247, 0.3);
  font-family: "Coda", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: #fff;
  background: #000 url("bg.jpg") center / cover no-repeat fixed;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 8, 11, 0.24) 45%, rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 82% 28%, rgba(17, 236, 247, 0.08), transparent 34rem);
  content: "";
  pointer-events: none;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: #fff;
}

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.quote-bar {
  padding: clamp(18px, 4vw, 42px) clamp(22px, 6vw, 76px);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.24) 65%, transparent);
}

.quote-bar p {
  max-width: 1200px;
  margin: 0;
  color: var(--yellow);
  font-size: clamp(1.7rem, 4.4vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: 0.025em;
  text-shadow: 0 0 22px rgba(254, 200, 12, 0.26);
}

.stage {
  width: min(1180px, calc(100% - 44px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 350px) minmax(0, 1fr);
  align-items: end;
  gap: clamp(28px, 6vw, 88px);
}

.phone-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 350px;
  align-self: end;
}

.phone-preview {
  position: relative;
  display: block;
  color: inherit;
}

.phone-preview > img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.58));
}

.play-button {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 72px;
  height: 73px;
  background: url("playbtn_default_v2.png") center / contain no-repeat;
  transform: translate(-50%, -50%);
  transition: filter 160ms ease, transform 160ms ease;
}

.phone-preview:hover .play-button,
.phone-preview:focus-visible .play-button {
  background-image: url("playbtn_hover_v2.png");
  filter: drop-shadow(0 0 14px rgba(17, 236, 247, 0.72));
  transform: translate(-50%, -50%) scale(1.05);
}

.about {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-bottom: clamp(34px, 6vh, 68px);
  padding: clamp(28px, 4vw, 44px) 0;
  background: transparent;
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}

.about::before,
.about::after {
  position: absolute;
  right: -100vmax;
  left: -100vmax;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
  content: "";
  pointer-events: none;
}

.about::before {
  top: 0;
}

.about::after {
  bottom: 0;
}

.about h1 {
  margin: 0;
  color: var(--cyan);
  font-size: clamp(2.2rem, 5.4vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  text-shadow: 0 0 24px rgba(17, 236, 247, 0.18);
}

.about h1 span {
  color: #fff;
}

.intro {
  max-width: 620px;
  margin: 20px 0 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  transition: filter 160ms ease, transform 160ms ease;
}

.actions a:hover {
  filter: brightness(1.12) drop-shadow(0 0 10px rgba(17, 236, 247, 0.24));
  transform: translateY(-2px);
}

.community-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 0.9rem;
}

.community-links span {
  color: rgba(255, 255, 255, 0.46);
}

.site-footer {
  min-height: 80px;
  padding: 12px clamp(22px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  border-top: 1px solid rgba(17, 236, 247, 0.18);
  background: rgba(0, 0, 0, 0.94);
}

.wordmark {
  width: 172px;
  height: auto;
  flex: 0 0 auto;
}

.legal {
  color: #92999a;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem;
}

.legal p {
  margin: 2px 0;
}

.legal a {
  color: var(--cyan-muted);
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
    background-position: 57% center;
  }

  .page-shell {
    overflow: visible;
  }

  .quote-bar {
    padding-inline: 22px;
  }

  .stage {
    width: min(100% - 32px, 620px);
    min-height: 0;
    padding-top: 24px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .about {
    order: 1;
    margin: 0 0 24px;
    padding: 28px 0;
  }

  .phone-wrap {
    order: 2;
    width: min(82vw, 330px);
    margin: 0 auto;
  }

  .actions {
    gap: 12px;
  }

  .site-footer {
    padding-block: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .wordmark {
    width: 146px;
  }
}

@media (max-width: 390px) {
  .about h1 {
    font-size: 2rem;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

}

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