:root {
  color-scheme: dark;
  --white: #fffaf7;
  --muted: rgba(255, 250, 247, 0.76);
  --faint: rgba(255, 250, 247, 0.16);
  --panel: rgba(12, 10, 28, 0.42);
  --line: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #03010f;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--white);
  background: #03010f url("./assets/launch-screen.png") center / cover fixed no-repeat;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.page-shell {
  min-height: 100vh;
  overflow: visible;
  background: transparent;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 28px clamp(20px, 6vw, 84px);
  isolation: isolate;
}

.hero-background {
  display: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 1, 15, 0.22) 0%, rgba(3, 1, 15, 0.08) 54%, rgba(3, 1, 15, 0) 100%),
    linear-gradient(180deg, rgba(3, 1, 15, 0.08) 0%, rgba(3, 1, 15, 0) 48%, rgba(3, 1, 15, 0.24) 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: start;
  width: 100%;
}

.brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-content {
  align-self: center;
  width: min(680px, 100%);
  padding: clamp(40px, 8vh, 96px) 0;
  text-align: center;
  justify-self: center;
}

.app-icon {
  display: block;
  width: clamp(86px, 12vw, 136px);
  height: clamp(86px, 12vw, 136px);
  margin: 0 auto clamp(24px, 4vh, 38px);
  border-radius: 24%;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-inline: auto;
  max-width: 760px;
  font-size: clamp(58px, 12vw, 146px);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 18px 64px rgba(0, 0, 0, 0.42);
  text-wrap: balance;
}

.intro {
  max-width: 560px;
  margin-inline: auto;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.72;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(152px, 18vw, 190px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.app-store-button:hover {
  transform: translateY(-2px);
}

.app-store-button img {
  display: block;
  width: 100%;
  height: auto;
}

.mood-scroll {
  position: relative;
  height: 300svh;
}

.mood-stage {
  position: sticky;
  top: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(28px, 5vh, 56px);
  min-height: 100svh;
  padding: 28px;
  overflow: hidden;
}

.mood-emoji-layer {
  display: grid;
  justify-items: center;
  width: min(980px, 100%);
  text-align: center;
}

.mood-emoji {
  grid-area: 1 / 1;
  font-size: clamp(132px, 26vw, 320px);
  line-height: 1;
  opacity: 0;
  filter: drop-shadow(0 26px 80px rgba(0, 0, 0, 0.34));
  transition: opacity 120ms linear;
  will-change: opacity;
}

.mood-copy {
  display: grid;
  gap: clamp(8px, 1.5vh, 16px);
  width: min(980px, 100%);
  text-align: center;
  pointer-events: none;
}

.mood-copy p {
  color: rgba(255, 250, 247, 0.94);
  font-size: clamp(24px, 4.6vw, 58px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
  opacity: 0;
  text-shadow: 0 18px 62px rgba(0, 0, 0, 0.42);
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
  visibility: hidden;
  white-space: nowrap;
  word-break: keep-all;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(72px, 10vw, 128px) clamp(20px, 6vw, 84px);
  background:
    linear-gradient(180deg, rgba(3, 1, 15, 0.22), rgba(3, 1, 15, 0.38));
  backdrop-filter: blur(12px);
}

.story-copy {
  max-width: 520px;
}

.story h2 {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.story-copy p:last-child {
  margin-top: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
}

.feature-grid {
  display: grid;
  gap: 12px;
}

.feature-card {
  min-height: 158px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    var(--panel);
  backdrop-filter: blur(20px);
}

.feature-card span {
  display: block;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 900;
}

.feature-card h3 {
  font-size: 22px;
  letter-spacing: 0;
}

.feature-card p {
  margin-top: 10px;
  color: rgba(255, 250, 247, 0.72);
  font-size: 15px;
  line-height: 1.65;
  word-break: keep-all;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  background: rgba(3, 1, 15, 0.34);
  backdrop-filter: blur(18px);
}

.site-footer div {
  display: grid;
  gap: 8px;
}

.site-footer p {
  color: rgba(255, 250, 247, 0.58);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer a {
  color: rgba(255, 250, 247, 0.88);
  font-size: 14px;
  font-weight: 800;
}

.policy-page {
  padding: 28px clamp(20px, 6vw, 84px) 96px;
  background:
    linear-gradient(180deg, rgba(3, 1, 15, 0.48), rgba(3, 1, 15, 0.72));
}

.policy-topbar {
  margin-bottom: clamp(48px, 8vw, 96px);
}

.policy-home-link {
  color: rgba(255, 250, 247, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.policy-document {
  width: min(920px, 100%);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    var(--panel);
  backdrop-filter: blur(22px);
}

.policy-header {
  margin-bottom: clamp(42px, 6vw, 72px);
}

.policy-header h1 {
  max-width: 100%;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1;
}

.policy-header p:last-child {
  max-width: 760px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
}

.policy-document section {
  padding-top: 34px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.policy-document h2 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.28;
  overflow-wrap: anywhere;
  word-break: normal;
}

.policy-document p,
.policy-document li {
  color: rgba(255, 250, 247, 0.76);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: normal;
}

.policy-document p {
  margin-top: 16px;
}

.policy-document ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.policy-document a {
  color: rgba(255, 250, 247, 0.94);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 250, 247, 0.34);
  text-underline-offset: 4px;
}

.language-switcher {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  top: clamp(16px, 3vw, 28px);
  bottom: auto;
  z-index: 100;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(3, 1, 15, 0.42);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.language-button {
  appearance: none;
  min-width: 42px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 250, 247, 0.68);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}

.language-button.is-active {
  color: #120918;
  background: rgba(255, 250, 247, 0.9);
}

:lang(ja) .intro,
:lang(ja) .story-copy p:last-child,
:lang(ja) .feature-card p,
:lang(ja) .policy-header p:last-child,
:lang(ja) .policy-document h2,
:lang(ja) .policy-document p,
:lang(ja) .policy-document li {
  line-break: strict;
  overflow-wrap: anywhere;
  word-break: normal;
}

:lang(ja) .mood-copy p {
  font-size: clamp(22px, 4.1vw, 52px);
  line-break: strict;
  overflow-wrap: anywhere;
  word-break: normal;
}

:lang(ja) .story h2 {
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.12;
}

:lang(ja) .feature-card h3 {
  line-height: 1.22;
}

@media (max-width: 760px) {
  .hero {
    min-height: 92svh;
    padding: 22px 20px;
  }

  .hero-background {
    object-position: 56% center;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(3, 1, 15, 0.08) 0%, rgba(3, 1, 15, 0) 38%, rgba(3, 1, 15, 0.36) 100%),
      linear-gradient(90deg, rgba(3, 1, 15, 0.18), rgba(3, 1, 15, 0));
  }

  .topbar {
    align-items: flex-start;
  }

  .hero-content {
    align-self: end;
    padding-bottom: 58px;
  }

  h1 {
    font-size: clamp(58px, 17vw, 86px);
  }

  .intro {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.66;
  }

  .story {
    grid-template-columns: 1fr;
    padding: 72px 20px 84px;
  }

  .feature-card {
    min-height: 144px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-page {
    padding: 22px 20px 72px;
  }

  .policy-document {
    padding: 24px 20px;
  }

  .policy-header h1 {
    font-size: clamp(36px, 11vw, 58px);
  }

  .language-switcher {
    right: 14px;
    top: 14px;
  }

  :lang(ja) .mood-copy p {
    white-space: normal;
  }
}
