:root {
  --ink: #07111c;
  --ink-deep: #03060b;
  --surface: #0c1826;
  --surface-soft: rgba(22, 52, 74, 0.55);
  --aqua: #8ae7ff;
  --aqua-deep: #5ad4de;
  --violet: #b07cff;
  --text: #e8f4ff;
  --text-muted: rgba(232, 244, 255, 0.72);
  --text-soft: rgba(232, 244, 255, 0.5);
  --line: rgba(138, 231, 255, 0.14);
  --font: "Nunito", system-ui, sans-serif;
  --max: 44rem;
  --wide: 64rem;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font);
  background: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100%;
}

a { color: var(--aqua); }
a:hover { color: #c8f6ff; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 88% -8%, rgba(138, 231, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 40% at 8% 95%, rgba(176, 124, 255, 0.18), transparent 52%),
    radial-gradient(ellipse 45% 35% at 50% 40%, rgba(60, 141, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #0a1624 0%, var(--ink) 48%, var(--ink-deep) 100%);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  position: relative;
  max-width: 100%;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  min-width: 0;
}
.mark:hover { color: var(--aqua); }
.mark img {
  width: 36px;
  height: 36px;
  border-radius: 20px;
  overflow: hidden;
  display: block;
  box-shadow: 0 0 18px rgba(138, 231, 255, 0.25);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  color: var(--text-muted);
}
.nav a:hover { color: var(--text); }
@media (max-width: 719px) {
  .nav .nav-desktop { display: none; }
}

.hero {
  padding: clamp(0.9rem, 2.8vw, 1.75rem) clamp(1.25rem, 4vw, 3rem) 2.25rem;
  width: 100%;
  max-width: var(--wide);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 1.75rem;
  align-items: start;
  animation: rise 0.75s ease-out both;
  box-sizing: border-box;
}
.hero > div:first-child {
  min-width: 0;
  width: 100%;
}
@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 17.6rem;
    gap: 2rem;
    align-items: center;
  }
  .hero-visual {
    justify-self: end;
  }
}

.hero-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  width: 100%;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--aqua);
  font-size: clamp(1.56rem, 4.16vw, 2.4rem);
}
.hero-title .brand {
  margin: 0;
  font-size: 1.2em;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  text-shadow: 0 0 40px rgba(138, 231, 255, 0.22);
  white-space: nowrap;
}
.hero-title .title-sep {
  font-weight: 700;
  color: var(--text-muted);
  white-space: pre;
}
.hero-title .title-rest {
  font-weight: 700;
  color: var(--aqua);
  white-space: nowrap;
}
.lede {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: clamp(1.12rem, 1.7vw, 1.22rem);
  line-height: 1.58;
  font-weight: 600;
  overflow-wrap: break-word;
}

.platform-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.65rem;
  width: 100%;
  max-width: 22rem;
  margin-top: 1.1rem;
}
.platform-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
}
.platform-cell .btn-platform { width: 100%; }
.platform-caption {
  margin: 0;
  width: 100%;
  font-size: 0.62rem;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  color: var(--text-soft);
  letter-spacing: -0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-platform {
  gap: 0.4rem;
  padding: 0.72rem 0.55rem;
  border-radius: 12px;
  color: #fff;
  font-size: clamp(0.78rem, 2.4vw, 0.92rem);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  text-align: center;
  line-height: 1.15;
}
.btn-platform:hover { color: #fff; }
.btn-platform .platform-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  display: block;
}
.btn-android {
  background: linear-gradient(180deg, #5ee0a0 0%, #2fbf72 100%);
  color: #062015;
}
.btn-android:hover {
  background: linear-gradient(180deg, #4fd492 0%, #28a964 100%);
  color: #062015;
}
.btn-appstore {
  background: linear-gradient(180deg, #e8ecf2 0%, #b8bec8 100%);
  color: #111;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-appstore:hover {
  background: linear-gradient(180deg, #dce1e8 0%, #a8b0bc 100%);
  color: #111;
}

.hero-visual {
  width: min(100%, 17.6rem);
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 20%;
  overflow: hidden;
  background: #022244;
  box-shadow:
    0 0 0 1px rgba(138, 231, 255, 0.12),
    0 22px 60px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(138, 231, 255, 0.12);
  justify-self: center;
  animation: rise 0.85s 0.08s ease-out both;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.strip {
  display: grid;
  gap: 1rem;
  max-width: var(--wide);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 2.5rem;
  box-sizing: border-box;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 600;
  animation: rise 0.9s 0.1s ease-out both;
}
.strip p {
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-wrap: anywhere;
  backdrop-filter: blur(8px);
}
.strip strong { color: var(--aqua); font-weight: 800; }
@media (min-width: 800px) {
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; }
}

.note {
  max-width: var(--wide);
  width: 100%;
  margin: 0 auto 2rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  box-sizing: border-box;
}
.note-box {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(12, 24, 38, 0.72);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}
.note-box strong { color: var(--text); }

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem) 3.5rem;
  animation: rise 0.55s ease-out both;
  overflow-wrap: anywhere;
}
.page h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.page .meta {
  margin: 0 0 1.75rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
}
.page h2 {
  margin: 1.85rem 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--aqua);
}
.page p, .page li {
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.6;
}
.page ul { padding-left: 1.2rem; }
.page a { font-weight: 800; text-underline-offset: 2px; }

.foot {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}
.foot a {
  color: var(--text-muted);
  text-decoration: none;
}
.foot a:hover { color: var(--aqua); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero, .strip, .page, .hero-visual { animation: none; }
}

.note-mobile { display: none; }
@media (max-width: 719px) {
  .hero-title {
    font-size: clamp(1.4rem, 3.74vw, 2.16rem);
  }
  .lede {
    font-size: clamp(1.01rem, 1.53vw, 1.1rem);
  }
  .lede-desktop {
    display: none;
  }
  .note-desktop { display: none; }
  .note-mobile { display: inline; }
}
@media (min-width: 901px) {
  main.hero {
    padding-top: calc(clamp(0.9rem, 2.8vw, 1.75rem) + 40px);
  }
}

.statcounter { position: absolute; width: 0; height: 0; overflow: hidden; }
