:root {
  --bg: #fbfaf7;
  --surface: rgba(255, 255, 255, 0.92);
  --ink: #111111;
  --muted: #5e5e5e;
  --line: rgba(17, 17, 17, 0.11);
  --gold: #b39153;
  --shadow: 0 24px 64px rgba(22, 18, 10, 0.08);
  --max: 1240px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --header-height: 88px;
  --mobile-tab-height: 86px;
  --title-max: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(179, 145, 83, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(17, 17, 17, 0.04), transparent 22%),
    linear-gradient(180deg, #fffefb 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Manrope", "Noto Sans JP", "Noto Sans TC", sans-serif;
  line-height: 1.65;
}

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

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

.page-shell {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
  padding: 20px 0 12px;
  backdrop-filter: blur(18px);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17, 17, 17, 0.1), transparent);
}

.brand img {
  width: clamp(156px, 20vw, 216px);
  height: auto;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a,
.footer-nav a,
.mobile-nav a,
.tab-item {
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.site-nav a,
.footer-nav a,
.mobile-nav a {
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible,
.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--ink);
  border-color: rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

.lang-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(16, 16, 16, 0.05);
}

.lang-select-wrap.compact {
  padding-right: 10px;
}

.lang-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  min-width: 92px;
  outline: none;
  cursor: pointer;
}

.mobile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-button {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 14px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
}

.mobile-menu {
  margin-top: -6px;
  margin-bottom: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  gap: 54px;
  align-items: start;
  min-height: auto;
  padding: 32px 0 56px;
}

.hero-copy {
  padding: 32px 26px 8px;
  background: rgba(255, 255, 255, 0.56);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.hero h1 {
  font-family: "Noto Sans JP", "Noto Sans TC", "Manrope", sans-serif;
  font-size: clamp(2rem, 2.25vw, var(--title-max));
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.04em;
  max-width: 18em;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: pretty;
}

.hero-text,
.about-copy p,
.section-head p,
.privacy-grid p,
.support .section-head p {
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-text {
  max-width: 34em;
  margin: 32px 0 0;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  grid-column: 1 / -1;
  margin-top: 16px;
  padding: 0 88px;
}

.hero-points article,
.value-grid article,
.privacy-grid article,
.support-card {
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 38px rgba(20, 18, 10, 0.06);
}

.hero-points strong,
.privacy-grid h3,
.support-card strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
}

.hero-points p,
.value-grid p,
.privacy-grid p,
.support-card span {
  margin: 10px 0 0;
  color: var(--muted);
}

.download-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  grid-column: 1 / -1;
  margin-top: 20px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 294px;
  padding: 16px 28px;
  background: #121212;
  color: #fff;
  border-radius: 0;
  border: 1px solid rgba(18, 18, 18, 0.18);
  box-shadow: 0 16px 34px rgba(18, 18, 18, 0.14);
}

.store-badge.android {
  background: linear-gradient(135deg, #111111 0%, #1e1b13 100%);
}

.badge-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.badge-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.badge-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.badge-copy small {
  font-size: 0.76rem;
  opacity: 0.72;
}

.badge-copy strong {
  font-size: 1.15rem;
  font-weight: 800;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  width: 100%;
  max-width: 620px;
  padding: 12px 0 20px;
}

.visual-frame {
  width: 100%;
  max-height: 360px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 56px rgba(17, 17, 17, 0.11);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.visual-frame img,
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-card {
  position: relative;
  max-width: 310px;
  padding: 16px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 22px 42px rgba(17, 17, 17, 0.12);
}

.visual-card span {
  display: block;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visual-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.45;
}

.accent-one {
  align-self: flex-end;
  margin-top: -32px;
  margin-right: -26px;
}

.accent-two {
  align-self: flex-start;
  margin-top: -16px;
  margin-left: -4px;
}

.value-band,
.section {
  padding: 42px 0 26px;
}

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

.stat {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, var(--title-max));
  font-weight: 700;
  line-height: 0.95;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.section-head.narrow {
  max-width: 820px;
}

.section h2 {
  font-size: clamp(1.85rem, 3vw, var(--title-max));
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.about-image {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 20px 54px rgba(18, 18, 18, 0.1);
  justify-self: center;
  width: min(100%, 860px);
}

.about-copy {
  padding: 4px 8px;
}

.about-copy p:first-child {
  margin-top: 0;
}

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

.privacy-grid h3 {
  margin: 0;
}

.privacy-grid p {
  margin-bottom: 0;
}

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

.policy-hero {
  padding-top: 26px;
}

.policy-lead {
  max-width: 48rem;
}

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

.policy-card {
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 38px rgba(20, 18, 10, 0.06);
}

.policy-card h2 {
  font-size: 1.22rem;
  line-height: 1.35;
  margin: 0 0 14px;
}

.policy-card p {
  margin: 0;
  color: var(--muted);
}

.support-card {
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 30px 0 20px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.mobile-tabbar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 60;
  display: none;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(14, 14, 14, 0.16);
  backdrop-filter: blur(16px);
}

.tab-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 62px;
  border-radius: 18px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.tab-item.active {
  background: linear-gradient(180deg, #141414 0%, #2a241a 100%);
  color: #fff;
}

.tab-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.desktop-hidden {
  display: none;
}

@media (max-width: 1180px) {
  .hero,
  .about-layout,
  .value-grid,
  .privacy-grid,
  .support-cards,
  .hero-points {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 720px;
  }

  .hero-points {
    padding: 0;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(calc(100% - 28px), var(--max));
    padding-bottom: calc(var(--mobile-tab-height) + 24px);
  }

  .desktop-only {
    display: none !important;
  }

  .desktop-hidden {
    display: flex;
  }

  .site-header {
    gap: 12px;
    align-items: center;
  }

  .brand img {
    width: 148px;
  }

  .mobile-head {
    margin-left: auto;
  }

  .lang-select-wrap.compact {
    min-width: 146px;
  }

  .hero {
    padding-top: 18px;
    gap: 28px;
  }

  .hero-copy {
    padding: 12px 0 0;
    background: transparent;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.75rem, 6.2vw, var(--title-max));
  }

  .hero-text {
    max-width: none;
  }

  .hero-visual {
    padding: 22px 0 36px;
  }

  .visual-card {
    max-width: none;
    margin-top: 14px;
  }

  .accent-one,
  .accent-two {
    margin: 14px 0 0;
    align-self: stretch;
  }

  .site-footer {
    display: none;
  }

  .mobile-tabbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max));
  }

  .lang-select-wrap.compact {
    min-width: 132px;
    padding-left: 10px;
  }

  .lang-label {
    display: none;
  }

  .menu-button {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .hero-text,
  .about-copy p,
  .section-head p,
  .privacy-grid p,
  .support .section-head p {
    font-size: 0.97rem;
  }

  .store-badge {
    width: 100%;
    justify-content: center;
    min-width: 0;
  }

  .section {
    padding-top: 34px;
  }

  .tab-item {
    font-size: 0.68rem;
  }
}
