:root {
  --navy: #071c38;
  --ink: #3e465f;
  --muted: #5c647c;
  --canvas: #f4f3fc;
  --wash: #e4e7fd;
  --ivory: #f4efe6;
  --card: #ffffff;
  --blue: #1468d6;
  --indigo: #4a46c8;
  --line: rgba(7, 28, 56, 0.12);
  --shadow: rgba(7, 28, 56, 0.08);
  --header: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background:
    radial-gradient(ellipse at 90% -10%, #ebe7ff 0, transparent 36%),
    var(--canvas);
  line-height: 1.6;
  font-size: 1.0625rem;
}

html[lang="ja"],
html[lang="ko"] {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Apple SD Gothic Neo", "Noto Sans JP", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.75;
  line-break: strict;
  word-break: keep-all;
}

img { max-width: 100%; height: auto; }

a { color: var(--indigo); }
a:hover { color: var(--blue); }
a[href^="mailto:"] { overflow-wrap: anywhere; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 6;
}

.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(244, 243, 252, 0.92);
  backdrop-filter: saturate(1.2) blur(14px);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: var(--header);
  padding: 8px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  min-height: 44px;
}

.wordmark img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.bar-tools {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  margin-left: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  font-weight: 650;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
}

.site-nav a[aria-current="page"] {
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.lang { position: relative; }

.lang-button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  border-radius: 999px;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lang-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(260px, calc(100vw - 32px));
  background: white;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(7, 28, 56, 0.14);
  padding: 8px;
  z-index: 5;
}

.languages {
  display: flex;
  flex-direction: column;
}

.languages a {
  color: var(--navy);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
}

.languages a[aria-current="true"] {
  background: var(--wash);
  font-weight: 700;
}

main { padding: 12px 0 72px; }

.tagline {
  margin: 0 0 10px;
  color: var(--indigo);
  font-weight: 750;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  letter-spacing: -0.048em;
  line-height: 1.05;
}

html[lang="ja"] h1,
html[lang="ko"] h1,
html[lang="ja"] h2,
html[lang="ko"] h2,
html[lang="ja"] h3,
html[lang="ko"] h3 {
  letter-spacing: 0;
  line-height: 1.28;
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

p, li { color: var(--ink); }

.lede {
  font-size: 1.18rem;
  max-width: 38rem;
}

.hero {
  display: grid;
  gap: 12px 40px;
  align-items: center;
  padding: 18px 0 8px;
}

.hero-art {
  margin: 0;
  display: grid;
  place-items: end center;
  min-height: 280px;
  background:
    radial-gradient(circle at 50% 42%, #fff 0, #f7f1e8 46%, #e4e7fd 100%);
  border-radius: 40px;
  overflow: hidden;
}

.hero-art img {
  width: min(430px, 92%);
  margin-bottom: -8px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.button:hover { color: white; background: #0c2a52; }

.button.ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px rgba(7, 28, 56, 0.28);
}

.button.ghost:hover { color: var(--navy); background: white; }

.showcase { margin-top: 72px; }

.showcase-lead { max-width: 38rem; margin-bottom: 36px; }

.device-shots {
  list-style: none;
  margin: 8px 0 42px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.device-shots li {
  margin: 0;
  background: linear-gradient(180deg, #1a3d6e, var(--navy));
  border-radius: 26px;
  padding: 7px;
  box-shadow: 0 16px 30px var(--shadow);
}

.device-shots img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1170 / 2532;
  border-radius: 20px;
  background: white;
}

.kicker {
  margin: 0 0 6px;
  color: var(--indigo);
  font-weight: 750;
  font-size: 0.92rem;
}

.split, .band {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 56px;
}

.frame {
  margin: 0;
  background: var(--ivory);
  border-radius: 32px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.frame.medal {
  background:
    radial-gradient(circle at 50% 45%, #fff, var(--wash) 72%);
  min-height: 240px;
}

.frame.medal img { width: min(180px, 46%); }

.duo {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.panel {
  border-radius: 28px;
  padding: 28px 24px 24px;
}

.panel.timed { background: linear-gradient(180deg, #fff, var(--ivory)); }
.panel.custom { background: #e7e6fb; }

.panel .badge {
  width: 104px;
  height: auto;
  margin-bottom: 8px;
}

.ops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ops img { width: 64px; height: auto; }

.avatars, .badge-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
}

.avatars img, .badge-row img { scroll-snap-align: start; }

.avatars img {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  object-fit: cover;
  flex: 0 0 auto;
}

.badge-row img {
  width: 108px;
  height: auto;
  flex: 0 0 auto;
}

.insight {
  margin-top: 56px;
  max-width: 40rem;
}

.promises {
  margin-top: 64px;
  background: var(--navy);
  color: #f6f3ea;
  border-radius: 32px;
  padding: 36px 28px;
}

.promises h2, .promises p, .promises li { color: #f6f3ea; }
.promises ul { margin: 12px 0 0; padding-left: 1.15rem; }
.promises .quiet { color: #d9d4ea; margin-top: 18px; font-size: 0.98rem; }

.prose { max-width: 44rem; }

.prose-head h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }

.updated { color: var(--muted); margin-top: 10px; }

.summary {
  background: var(--ivory);
  border-radius: 24px;
  padding: 22px 22px 8px;
  margin: 28px 0;
}

.summary h2 { font-size: 1.25rem; }

.prose section { margin-top: 2.1rem; }

.review {
  border-left: 3px solid var(--indigo);
  padding-left: 12px;
}

footer {
  padding: 8px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

footer nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }

footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
}

#features { scroll-margin-top: calc(var(--header) + 12px); }

@media (max-width: 980px) {
  .device-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 800px) {
  .wrap { width: min(1080px, calc(100% - 64px)); }
  .hero { grid-template-columns: 1.05fr 0.95fr; padding-top: 28px; }
  .hero-art { min-height: 520px; }
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .split.reverse { grid-template-columns: 0.8fr 1.2fr; }
  .split.reverse .frame { order: -1; }
  .duo { grid-template-columns: 1fr 1fr; }
  .ops img { width: 72px; }
  .band { grid-template-columns: 0.9fr 1.1fr; }
  .band.flip { grid-template-columns: 1.05fr 0.95fr; }
}

@media (max-width: 720px) {
  .bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand lang" "nav nav";
    align-items: center;
  }
  .bar-tools { display: contents; }
  .wordmark { grid-area: brand; }
  .lang { grid-area: lang; justify-self: end; }
  .site-nav { grid-area: nav; }
  .lang-button {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero-art { min-height: 240px; border-radius: 28px; }
  .device-shots {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
  }
  .device-shots li {
    flex: 0 0 100%;
    min-width: 0;
    border-radius: 22px;
    padding: 6px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .device-shots img { border-radius: 16px; }
  .panel, .promises, .summary { padding-left: 18px; padding-right: 18px; }
  h1 { font-size: clamp(2rem, 10vw, 2.7rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .device-shots { scroll-behavior: auto; scroll-snap-type: none; }
  .device-shots li { scroll-snap-stop: normal; }
}
