@font-face {
  font-family: 'Outfit';
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}

:root {
  /* App palette */
  --bg: #1b1630;
  --card: #2a2247;
  --chip: #3a3066;
  --line: #4a3f80;
  --lav: #b8a4ff;
  --lav-text: #c2b2ff;
  --mint: #74e3c6;
  --text: #f4f0ff;
  --soft: #d6cff0;
  --muted: #a99fd0;
  /* Illustration palette */
  --dusk-1: #3d3157;
  --dusk-2: #6b5a9e;
  --dusk-3: #8e7dbf;
  --dusk-4: #b9a6d9;
  --dusk-5: #d9c8ec;
  --head: 'Outfit', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', system-ui, sans-serif;
  --body: 'Inter', 'Hiragino Sans', 'Noto Sans JP', system-ui, sans-serif;
  --max: 1120px;
  --pad: clamp(20px, 5vw, 40px);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.lang-ja {
  line-height: 1.8;
  word-break: normal;
  line-break: strict;
}

a {
  color: var(--lav-text);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--lav);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.06;
}

.lang-ja h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.3;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.lang-ja h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.4;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

p {
  margin: 0 0 12px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}

.fine {
  font-size: 14px;
  color: var(--muted);
}

section {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) var(--pad);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 17px;
  transition: transform 0.2s ease, background 0.3s, box-shadow 0.3s;
}

.btn.primary {
  background: var(--lav);
  color: var(--bg);
  box-shadow: 0 10px 40px -12px rgba(184, 164, 255, 0.6);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px -12px rgba(184, 164, 255, 0.75);
}

.btn.ghost {
  color: var(--text);
  background: rgba(58, 48, 102, 0.6);
}

.btn.ghost:hover {
  background: var(--chip);
}

/* ---------- Header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  /* Full-width bar, content lined up with the page column. */
  padding: 14px max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  background: rgba(27, 22, 48, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  font-family: var(--head);
  font-weight: 600;
  font-size: 24px;
  color: var(--text);
}

.links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.links a {
  color: var(--soft);
  font-size: 16px;
}

.links a:hover {
  color: var(--text);
}

.langs {
  display: flex;
  background: var(--card);
  border-radius: 999px;
  padding: 4px;
}

.langs a {
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--soft);
}

.langs a[aria-current='page'] {
  background: var(--lav);
  color: var(--bg);
}

.suggest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px var(--pad);
  background: var(--chip);
  font-size: 15px;
}

.suggest[hidden] {
  display: none;
}

.suggest a {
  font-weight: 600;
}

.suggest button {
  background: none;
  border: 0;
  color: var(--soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: 40px;
}

.hero .lead {
  color: var(--soft);
  font-size: clamp(18px, 1.6vw, 20px);
  margin: 22px 0 30px;
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.note {
  color: var(--muted);
  font-size: 15px;
  margin-top: 18px;
}

.hero-art {
  position: relative;
  margin: 0;
  animation: float 9s ease-in-out infinite;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
  box-shadow: 0 40px 120px -30px rgba(142, 125, 191, 0.45);
}

.float-card {
  position: absolute;
  left: -18px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(42, 34, 71, 0.92);
  backdrop-filter: blur(8px);
  font-family: var(--head);
  font-weight: 500;
  font-size: 18px;
  color: var(--lav-text);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

.float-card .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ---------- Waves ---------- */

.waves {
  position: relative;
  height: 160px;
  overflow: hidden;
  pointer-events: none;
}

.wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  animation: drift linear infinite;
}

.divider {
  margin-top: -40px;
}

.divider-down {
  background: #3d3268;
}

.band {
  background: #3d3268;
  max-width: none;
  margin: 0;
  border-radius: 0;
}

.stages-section {
  text-align: center;
}

.stages-section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.stages-section .eyebrow {
  color: var(--dusk-5);
}

/* ---------- Window cards (stages) ---------- */

.stages {
  list-style: none;
  padding: 0;
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: left;
}

.stage h3 {
  margin-top: 22px;
}

.stage p {
  color: var(--soft);
  font-size: 16px;
}

.porthole {
  /* An aircraft window: rounded rectangle inside a thick soft bezel. */
  aspect-ratio: 3 / 4;
  border-radius: 46% / 36%;
  padding: 12px;
  background: var(--dusk-1);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    0 24px 60px -24px rgba(10, 6, 30, 0.7);
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--d);
}

.porthole-sky {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 44% / 34%;
  overflow: hidden;
  /* Dusk sky: deep at the top, a pale glow at the horizon, like the illustration. */
  background: linear-gradient(180deg, #67569b 0%, #8471b5 26%, #ad9ad6 44%, #dccbef 54%, #c6b4e4 62%);
}

/* The inner rim of the window sits above the sky and clouds. */
.porthole-sky::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 6px rgba(82, 70, 120, 0.85),
    inset 0 0 22px rgba(40, 28, 80, 0.35);
  pointer-events: none;
  z-index: 2;
}

.streaks {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 52%;
  animation: sway 26s ease-in-out infinite alternate;
}

.porthole .waves.mini {
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
}

/* A frosted-glass tile, so the sky shows through the icon. */
.porthole-icon {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06) 55%, rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -8px 16px rgba(80, 60, 140, 0.18),
    0 10px 26px -8px rgba(40, 24, 90, 0.45);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  z-index: 3;
}

.porthole-icon svg {
  filter: drop-shadow(0 1px 2px rgba(50, 30, 100, 0.45));
}

/* ---------- Takeoff split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.split-text p {
  color: var(--soft);
}

.split-text .fine {
  color: var(--muted);
  margin-top: 18px;
}

.device {
  position: relative;
  background: var(--card);
  border-radius: 36px;
  padding: 40px 34px 34px;
  overflow: hidden;
}

.wing {
  position: absolute;
  right: -40px;
  top: 18px;
  width: 60%;
  fill: var(--dusk-1);
  opacity: 0.9;
}

.ticker {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 70px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ticker li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  animation: tick 21s infinite;
  animation-delay: calc(var(--i) * 3s);
}

.ticker .ring {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--line);
  flex: none;
  animation: tick-ring 21s infinite;
  animation-delay: calc(var(--i) * 3s);
}

/* ---------- Bumps ---------- */

.bumps {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.breath {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 227, 198, 0.1), transparent 68%);
}

.orb {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #cdbdff, var(--lav) 45%, #8a72e0);
  box-shadow: 0 0 80px rgba(184, 164, 255, 0.35);
  animation: breathe 12s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

blockquote {
  margin: 8px 0 22px;
  padding: 24px 26px;
  border-radius: 24px;
  background: var(--card);
  display: flex;
  gap: 16px;
}

blockquote p {
  margin: 0;
  font-size: 19px;
}

.quote-icon {
  color: var(--mint);
  flex: none;
}

.bumps-text > p {
  color: var(--soft);
  margin-bottom: 24px;
}

/* ---------- Privacy + price ---------- */

.trio {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: 26px;
  padding: 28px;
}

.card p {
  color: var(--soft);
  margin: 0;
  font-size: 16px;
}

.mint {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--chip);
  color: var(--mint);
  margin-bottom: 18px;
}

.price {
  margin-top: 20px;
  background: linear-gradient(120deg, var(--card), #3a2f6b);
  text-align: center;
  padding: 44px 28px;
}

.price h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.price .eyebrow {
  margin-bottom: 10px;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 780px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 40px 16px 0;
  font-weight: 600;
  font-size: 18px;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 12px;
  font-size: 24px;
  color: var(--lav);
  transition: transform 0.3s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  color: var(--soft);
  padding-bottom: 14px;
}

/* ---------- Closing + footer ---------- */

.closing {
  max-width: none;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  position: relative;
}

.closing h2 {
  max-width: 16em;
  margin: 0 auto 30px;
  padding: 0 var(--pad);
}

.closing-waves {
  height: 170px;
  margin-top: 60px;
}

.foot {
  background: #3d3268;
  text-align: center;
  padding: 20px var(--pad) 48px;
  color: var(--soft);
  font-size: 15px;
}

.foot p {
  max-width: 640px;
  margin: 0 auto 18px;
}

.langs.small {
  display: inline-flex;
  background: rgba(27, 22, 48, 0.4);
  margin-bottom: 18px;
}

/* ---------- Root language picker (shown only without JS) ---------- */

.pick {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 18px;
}

.pick ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 12px;
}

.pick a {
  display: block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--card);
}

/* ---------- Motion ---------- */

@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}

@keyframes sway {
  to {
    transform: translateX(6%);
  }
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.62);
  }
  33%,
  50% {
    transform: scale(1);
  }
}

/* Each step glows for its 3 s slot of a 21 s loop. */
@keyframes tick {
  0%,
  14.2% {
    color: var(--text);
    font-weight: 600;
  }
  14.3%,
  100% {
    color: var(--muted);
    font-weight: 400;
  }
}

@keyframes tick-ring {
  0%,
  14.2% {
    background: var(--lav);
    border-color: var(--lav);
    box-shadow: 0 0 0 6px rgba(184, 164, 255, 0.15);
  }
  14.3%,
  100% {
    background: transparent;
    border-color: var(--line);
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .hero,
  .split,
  .bumps {
    grid-template-columns: 1fr;
  }
  .stages {
    grid-template-columns: repeat(2, 1fr);
  }
  .trio {
    grid-template-columns: 1fr;
  }
  .breath {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }
  .float-card {
    left: 12px;
  }
}

@media (max-width: 640px) {
  .links {
    display: none;
  }
  .stages {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .stage p {
    font-size: 15px;
  }
  .top {
    gap: 12px;
  }
}
