/* Starry Sky Dreams — static site */
:root {
  --bg: #0b1020;
  --bg-soft: #121a33;
  --card: #16203c;
  --text: #e8eefc;
  --muted: #9aabc9;
  --accent: #6ea8ff;
  --accent-2: #b388ff;
  --ok: #3ddc97;
  --radius: 14px;
  --max: 1080px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 20% -10%, #1a2a55 0%, var(--bg) 55%) fixed;
  color: var(--text);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 16, 32, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand:hover { text-decoration: none; opacity: 0.92; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.25rem 0;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}
.lang-switch {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin-left: 0.4rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.lang-switch a {
  font-size: 0.85rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  color: var(--muted);
}
.lang-switch a.active {
  background: rgba(110, 168, 255, 0.18);
  color: var(--text);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(179, 136, 255, 0.12);
  border: 1px solid rgba(179, 136, 255, 0.28);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.hero .lede {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 38rem;
}
/* Official store badges — do not restyle artwork (Apple & Google brand guidelines) */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  align-items: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.15s ease;
}
.store-badge:hover {
  text-decoration: none;
  opacity: 0.88;
}
/*
 * Match VISIBLE height = 46px on both badges (artwork is never stretched).
 *
 * Apple SVG fills its box → height: 46px is the badge height.
 *
 * Google Play web_generic PNG is 300x116 with visible badge 264x80
 * (18px transparent clear-space on every side).
 *   canvas height = 46 * (116/80) ≈ 67px   ← enlarge Google so visible height = Apple
 *   rendered padding = 18 * (67/116) ≈ 10px → negative margin
 *
 * Google brand rule: Google Play badge must be same size or larger.
 * Equal height + Google's wider aspect → Google is not smaller.
 */
.store-badge img.apple-badge {
  height: 46px;
  width: auto;
  display: block;
}
.store-badge img.play-badge {
  height: 67px;
  width: auto;
  margin: -10px 0;
  display: block;
}
.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
/* Native aspect (2360x1640) — do not crop */
.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 2360 / 1640;
  object-fit: contain;
}

/* Sections */
section { padding: 2.25rem 0; }
.section-title {
  font-size: 1.55rem;
  margin: 0 0 1rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.card h3 { margin: 0 0 0.55rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.shots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
/* Native portrait aspect (1206x2622) — do not crop */
.shots img {
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

/* YouTube click-to-load trailer */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.video-embed img,
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.video-embed .play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 16, 32, 0.28);
  transition: background 0.2s ease;
}
.video-embed:hover .play-btn {
  background: rgba(11, 16, 32, 0.4);
}
.video-embed .play-btn span {
  width: 72px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-embed .play-btn span::after {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.video-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Legal pages */
.legal {
  max-width: 780px;
  padding: 2.5rem 0 3.5rem;
}
.legal h1 { margin-top: 0; font-size: 2rem; }
.legal h2 { margin-top: 1.8rem; font-size: 1.25rem; }
.legal p, .legal li { color: var(--text); }
.legal .muted { color: var(--muted); }

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.25rem; }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav { flex-direction: column; align-items: flex-start; }
  .lang-switch { margin-left: 0; padding-left: 0; border-left: 0; }
}
