:root {
  --bg-deep: #0f141e;
  --glass-bg: rgba(16, 22, 34, 0.74);
  --glass-strong: rgba(14, 19, 30, 0.86);
  --glass-soft: rgba(24, 32, 48, 0.62);
  --border-subtle: rgba(255, 244, 229, 0.14);
  --border-warm: rgba(236, 134, 82, 0.36);
  --text-primary: #f8f4ee;
  --text-secondary: #d2cbc2;
  --text-muted: #9da3b0;
  --accent-maple: #e06a3f;
  --accent-maple-hover: #ee7c52;
  --accent-gold: #f0be7a;
  --accent-indigo: #5b93f5;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-card: 0 24px 64px rgba(5, 8, 15, 0.52);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fixed Full-Bleed Japanese Momiji Sumi-e Background */
.jp-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/bg-momiji.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.jp-backdrop-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 72% 58% at 50% 34%, rgba(12, 17, 27, 0.56) 0%, rgba(12, 17, 27, 0.72) 68%, rgba(9, 13, 21, 0.86) 100%),
    linear-gradient(180deg, rgba(11, 15, 24, 0.42) 0%, rgba(11, 15, 24, 0.28) 38%, rgba(11, 15, 24, 0.78) 100%);
  pointer-events: none;
}

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

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* In-app browser notice */
.webview-banner {
  display: none;
  background: linear-gradient(90deg, rgba(224, 106, 63, 0.96), rgba(212, 85, 58, 0.96));
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 60;
}

.webview-banner.show {
  display: block;
}

/* Top Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(12, 17, 27, 0.68);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(224, 106, 63, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-maple), #cf5634);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(224, 106, 63, 0.34);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(224, 106, 63, 0.46);
}

/* Hero Section */
.hero {
  padding: 44px 0 28px;
  text-align: center;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-app-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 240, 224, 0.2);
}

.hero-title-group {
  text-align: left;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 4px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

.hero-sub {
  max-width: 660px;
  margin: 14px auto 24px;
  font-size: clamp(14.5px, 2vw, 17px);
  color: var(--text-secondary);
}

/* Primary Download Cluster */
.download-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 660px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e77346 0%, #cf5230 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(224, 106, 63, 0.42);
  border: 1px solid rgba(255, 224, 200, 0.25);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  cursor: pointer;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(224, 106, 63, 0.55);
  filter: brightness(1.04);
}

.btn-download .btn-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.2;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 244, 229, 0.28);
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.release-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.direct-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 100%;
}

.direct-link-row a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

/* QR Popover */
.qr-drawer {
  display: none;
  margin-top: 4px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #1a2130;
  text-align: center;
}

.qr-drawer.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-drawer p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #243045;
}

/* Centered App Poster Showcase Carousel */
.showcase-section {
  padding: 16px 0 46px;
}

.showcase-card {
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 22px 20px 24px;
}

.carousel-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: safe center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.carousel-tabs::-webkit-scrollbar {
  display: none;
}

.carousel-tab {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.carousel-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.carousel-tab.active {
  background: linear-gradient(135deg, rgba(224, 106, 63, 0.28), rgba(240, 190, 122, 0.18));
  border-color: var(--border-warm);
  color: #fff;
  font-weight: 600;
}

.carousel-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  user-select: none;
  touch-action: pan-y;
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 244, 229, 0.2);
  background: rgba(15, 21, 33, 0.82);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  z-index: 3;
}

.carousel-arrow:hover {
  background: rgba(224, 106, 63, 0.88);
  border-color: rgba(255, 224, 200, 0.45);
  transform: scale(1.06);
}

.carousel-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 820px;
  overflow: hidden;
  padding: 6px 0;
}

.poster-side {
  display: none;
  width: 175px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  opacity: 0.42;
  transform: scale(0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.poster-side:hover {
  opacity: 0.72;
  transform: scale(0.95);
}

.poster-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-main-wrap {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 244, 229, 0.16);
  background: #0d121c;
  cursor: zoom-in;
  flex-shrink: 0;
}

.poster-main-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.22s ease;
}

.poster-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.carousel-caption {
  margin-top: 16px;
  text-align: center;
}

.carousel-caption h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.carousel-caption p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.carousel-dot.active {
  width: 24px;
  background: var(--accent-maple);
}

/* Content Sections */
.section {
  padding: 28px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
}

.section-heading p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.glass-box {
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  padding: 22px;
  box-shadow: 0 14px 36px rgba(5, 8, 15, 0.36);
}

.glass-box.highlight {
  border-color: var(--border-warm);
  background: linear-gradient(160deg, rgba(38, 26, 26, 0.78), rgba(16, 22, 34, 0.82));
}

.tier-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tier-tag.free {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.tier-tag.pro {
  background: rgba(224, 106, 63, 0.24);
  color: var(--accent-gold);
}

.glass-box h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "✓";
  color: var(--accent-gold);
  font-weight: 700;
  margin-right: 9px;
}

/* Changelog */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.changelog-item {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 18px;
}

.changelog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.changelog-ver {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--accent-gold);
}

.changelog-date {
  font-size: 12.5px;
  color: var(--text-muted);
}

.changelog-item ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 14px;
}

.changelog-item li + li {
  margin-top: 4px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

details.faq-item {
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  padding: 14px 18px;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--accent-gold);
  margin-left: 12px;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin: 10px 0 2px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Bottom CTA Card */
.bottom-cta {
  margin: 24px 0 36px;
  border-radius: var(--radius-xl);
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-warm);
  padding: 28px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-card);
}

.bottom-cta-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bottom-cta-left img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.bottom-cta-left h3 {
  margin: 0 0 3px;
  font-size: 19px;
}

.bottom-cta-left p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 14, 22, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 28px 0 36px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--text-primary);
}

.email-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--accent-gold);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12.5px;
  cursor: pointer;
}

.footer-note {
  margin: 0;
  font-size: 12px;
  color: rgba(157, 163, 176, 0.82);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 9, 15, 0.92);
  backdrop-filter: blur(10px);
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(94vw, 680px);
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(20, 26, 38, 0.85);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* Legal & Credits subpages */
.doc-wrap {
  padding: 36px 0 60px;
}

.doc-card {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}

.doc-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
}

.doc-card h2 {
  margin: 26px 0 10px;
  font-size: 18px;
  color: var(--accent-gold);
}

.doc-card p,
.doc-card li {
  color: var(--text-secondary);
  font-size: 14.5px;
}

.credit-item {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.credit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.credit-license {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(224, 106, 63, 0.2);
  padding: 2px 9px;
  border-radius: 999px;
}

@media (min-width: 860px) {
  .poster-side {
    display: block;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 14px;
  }
  .nav-links {
    display: none;
  }
  .nav-cta {
    padding: 7px 12px;
    font-size: 12.5px;
  }
  .hero {
    padding: 24px 0 18px;
  }
  .download-panel {
    padding: 16px 14px;
  }
  .btn-download {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 15px;
  }
  .carousel-tabs {
    justify-content: flex-start;
  }
  .hero-badge-row {
    flex-direction: column;
    gap: 10px;
  }
  .hero-title-group {
    text-align: center;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
  }
  .carousel-arrow:hover {
    transform: translateY(-50%) scale(1.06);
  }
  .carousel-arrow.prev {
    left: 6px;
  }
  .carousel-arrow.next {
    right: 6px;
  }
  .showcase-card {
    padding: 16px 12px 20px;
  }
  .bottom-cta {
    justify-content: center;
    text-align: center;
  }
  .bottom-cta-left {
    flex-direction: column;
  }
}
