:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #fff;
  --text: #10243a;
  --muted: #66717d;
  --navy: #07345b;
  --blue: #226aa7;
  --soft: #edf5fb;
  --border: #e5e8eb;
  --shadow: 0 24px 70px rgba(16, 36, 58, .1);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans KR", "Noto Sans JP", sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }

.app-icon {
  display: block;
  flex: 0 0 auto;
  border-radius: 22%;
  box-shadow: 0 10px 26px rgba(16, 36, 58, .14);
}
.compact-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none;
}
.eyebrow, .description, .section-kicker, .home-cta p { margin: 0; }
.eyebrow, .section-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .04em;
}
.description { color: var(--muted); line-height: 1.7; word-break: keep-all; }

.site-header {
  display: flex;
  width: min(calc(100% - 40px), 1180px);
  min-height: 88px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}
.site-header .app-icon { width: 42px; height: 42px; }
.header-download, .primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  font-weight: 740;
  text-decoration: none;
  transition: background-color .16s ease, transform .16s ease;
}
.header-download { min-height: 42px; padding: 0 18px; font-size: 14px; }
.header-download:hover, .primary-link:hover { background: var(--blue); transform: translateY(-1px); }

.home-hero {
  display: grid;
  width: min(calc(100% - 40px), 1180px);
  min-height: 760px;
  margin: 0 auto;
  grid-template-columns: minmax(0, .92fr) minmax(380px, .78fr);
  align-items: center;
  gap: clamp(54px, 8vw, 112px);
  overflow: hidden;
}
.home-hero-copy { position: relative; z-index: 2; padding: 80px 0; }
.home-hero h1, .download-card h1 {
  margin: 0;
  color: var(--text);
  font-weight: 820;
  letter-spacing: -.055em;
  word-break: keep-all;
}
.home-hero h1 {
  max-width: 630px;
  margin-top: 18px;
  font-size: clamp(48px, 6.2vw, 76px);
  line-height: 1.08;
}
html[lang="ja"] .home-hero h1 { white-space: pre-line; }
.home-hero .description { max-width: 540px; margin-top: 24px; font-size: clamp(17px, 1.8vw, 20px); }
.home-hero .store-links { width: min(100%, 540px); margin-top: 34px; }
.primary-link { min-height: 52px; margin-top: 34px; padding: 0 23px; }
.hero-visual { position: relative; align-self: end; min-height: 700px; }
.visual-orb {
  position: absolute;
  width: 560px;
  height: 560px;
  right: -120px;
  bottom: 60px;
  background: var(--soft);
  border-radius: 50%;
}
.hero-screenshot {
  position: absolute;
  z-index: 1;
  width: min(100%, 440px);
  height: auto;
  right: 0;
  bottom: -140px;
  border-radius: 34px 34px 0 0;
  box-shadow: var(--shadow);
}

.product-section { padding: 112px max(20px, calc((100% - 1180px) / 2)); background: var(--navy); }
.section-copy { max-width: 720px; }
.section-copy .section-kicker { color: #9bc9ef; }
.section-copy h2, .home-cta h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.045em;
  word-break: keep-all;
}
.section-copy h2 {
  margin-top: 16px;
  color: #fff;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.15;
  white-space: pre-line;
}
.highlight-list {
  display: grid;
  margin-top: 64px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .2);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.highlight-item {
  display: flex;
  min-height: 104px;
  padding: 24px 28px;
  align-items: center;
  gap: 18px;
  color: #fff;
}
.highlight-item + .highlight-item { border-left: 1px solid rgba(255, 255, 255, .2); }
.highlight-number { color: #91c2e8; font-size: 12px; font-weight: 800; }
.highlight-item strong { font-size: 16px; line-height: 1.5; word-break: keep-all; }
.screenshot-grid {
  display: grid;
  margin-top: 72px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 52px);
}
.screenshot-card {
  margin: 0;
  padding: clamp(18px, 3vw, 34px) clamp(18px, 3vw, 40px) 0;
  overflow: hidden;
  background: #f5f8fa;
  border-radius: 28px;
}
.screenshot-card:nth-child(2) { background: #eaf2f8; }
.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(1, 23, 42, .16));
}

.home-cta {
  display: flex;
  padding: 112px 20px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta-icon { width: 72px; height: 72px; }
.home-cta h2 { max-width: 700px; margin-top: 26px; font-size: clamp(34px, 4.5vw, 54px); }
.home-cta p { max-width: 560px; margin-top: 16px; color: var(--muted); line-height: 1.7; word-break: keep-all; }
.home-cta .store-links { width: min(100%, 540px); margin-top: 32px; }
.site-footer {
  display: flex;
  width: min(calc(100% - 40px), 1180px);
  min-height: 120px;
  margin: 0 auto;
  padding: 28px 0;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  padding: 48px 20px;
  place-items: center;
  background: radial-gradient(circle at 18% 14%, rgba(34, 106, 167, .08), transparent 28rem), var(--bg);
}
.download-card {
  width: min(100%, 650px);
  padding: clamp(30px, 6vw, 54px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.download-card .app-icon { width: 54px; height: 54px; }
.download-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  letter-spacing: 0;
}
.download-brand-copy strong { font-size: 20px; line-height: 1.15; }
.download-brand-copy span { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.2; }
.download-copy { margin-top: 42px; }
.download-card h1 { margin-top: 14px; font-size: clamp(34px, 6vw, 48px); line-height: 1.15; }
.download-card .description { margin-top: 15px; font-size: 16px; }

.store-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.store-link {
  display: flex;
  min-height: 70px;
  padding: 12px 16px;
  align-items: center;
  gap: 13px;
  color: #fff;
  background: #111;
  border: 1px solid #111;
  border-radius: 14px;
  text-decoration: none;
  transition: background-color .16s ease, transform .16s ease;
}
.store-link:hover { background: #2a2a2a; transform: translateY(-1px); }
.store-icon { display: block; width: 28px; height: 28px; flex: 0 0 auto; }
.store-icon-apple { fill: currentColor; }
.store-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.store-kicker {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.store-link strong { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.text-link { display: inline-block; margin-top: 18px; color: var(--muted); font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
.divider { height: 1px; margin: 34px 0 22px; background: var(--border); }

.language-list { display: flex; margin: 0; padding: 0; flex-wrap: wrap; gap: 8px; list-style: none; }
.language-link {
  display: inline-flex;
  min-height: 36px;
  padding: 7px 11px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 680;
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.language-link:hover, .language-link[aria-current="page"], .language-link.is-recommended {
  color: var(--blue);
  background: var(--soft);
  border-color: rgba(34, 106, 167, .3);
}
.recommendation-badge {
  padding: 2px 6px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.primary-link:focus-visible, .header-download:focus-visible, .compact-brand:focus-visible,
.store-link:focus-visible, .text-link:focus-visible, .language-link:focus-visible {
  outline: 3px solid rgba(34, 106, 167, .3);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .home-hero { min-height: auto; padding-top: 50px; grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .home-hero-copy { padding: 36px 0 10px; }
  .home-hero h1, .home-hero .description { margin-right: auto; margin-left: auto; }
  .home-hero .store-links { margin-right: auto; margin-left: auto; }
  .hero-visual { min-height: 620px; }
  .visual-orb { right: 50%; bottom: 25px; transform: translateX(50%); }
  .hero-screenshot { width: 390px; right: 50%; bottom: -140px; transform: translateX(50%); }
  .highlight-list { grid-template-columns: 1fr; }
  .highlight-item { min-height: 74px; }
  .highlight-item + .highlight-item { border-top: 1px solid rgba(255, 255, 255, .2); border-left: 0; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .site-header { min-height: 74px; }
  .site-header .compact-brand { gap: 9px; font-size: 17px; }
  .site-header .app-icon { width: 36px; height: 36px; }
  .header-download { min-height: 38px; padding: 0 14px; font-size: 12px; }
  .home-hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-visual { min-height: 555px; }
  .hero-screenshot { width: min(88vw, 360px); bottom: -125px; }
  .visual-orb { width: 440px; height: 440px; }
  .product-section { padding-top: 84px; padding-bottom: 84px; }
  .highlight-list, .screenshot-grid { margin-top: 44px; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .screenshot-card { border-radius: 22px; }
  .home-cta { padding-top: 84px; padding-bottom: 84px; }
  .home-hero .store-links,
  .home-cta .store-links {
    width: min(540px, calc(100vw - 74px));
  }
  html[lang="ja"] .home-hero h1,
  html[lang="ja"] .home-hero .description,
  html[lang="ja"] .section-copy h2,
  html[lang="ja"] .highlight-item strong,
  html[lang="ja"] .home-cta h2,
  html[lang="ja"] .home-cta p {
    word-break: normal;
    overflow-wrap: anywhere;
  }
  html[lang="ja"] .home-hero h1 {
    font-size: clamp(38px, 11.5vw, 50px);
    line-height: 1.18;
  }
  .page-shell { padding: 20px 14px; }
  .download-card { padding: 28px 22px; border-radius: 22px; }
  .download-copy { margin-top: 34px; }
  .download-card h1 { font-size: 34px; }
  html[lang="ja"] .download-card h1,
  html[lang="zh-Hans"] .download-card h1,
  html[lang="zh-Hant"] .download-card h1 {
    font-size: 30px;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  html[lang="ja"] .download-card .description,
  html[lang="zh-Hans"] .download-card .description,
  html[lang="zh-Hant"] .download-card .description {
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .store-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-link, .header-download, .store-link, .language-link { transition: none; }
}
