:root {
  color-scheme: dark;
  --bg: #07111d;
  --bg2: #101f32;
  --panel: rgba(12, 22, 36, 0.72);
  --panel-strong: rgba(17, 30, 48, 0.92);
  --text: #edf4ff;
  --muted: #a7b4c8;
  --line: rgba(173, 194, 227, 0.18);
  --accent: #8bd3ff;
  --accent-2: #8effc8;
  --accent-3: #ffd38e;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(139, 211, 255, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(142, 255, 200, 0.16), transparent 22%),
    radial-gradient(circle at 50% 20%, rgba(255, 211, 142, 0.1), transparent 18%),
    linear-gradient(145deg, var(--bg), var(--bg2) 62%, #050a12);
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 38%, rgba(139, 211, 255, 0.12), transparent 20%),
    radial-gradient(circle at 72% 62%, rgba(142, 255, 200, 0.1), transparent 22%),
    radial-gradient(circle at 54% 48%, rgba(255, 211, 142, 0.07), transparent 18%);
  filter: blur(24px);
  transform: translate3d(-2%, -1%, 0) scale(1);
  animation: ambient-drift 56s ease-in-out infinite alternate;
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

@keyframes ambient-drift {
  to {
    transform: translate3d(2%, 1.5%, 0) scale(1.04);
  }
}

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

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(139, 211, 255, 0.28);
}

.language-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.language-nav a,
.language-nav span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.language-nav span {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 34px;
  padding: 36px 0 44px;
}

.hero > div:first-child {
  align-self: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.lede {
  margin: 20px 0 0;
  max-width: 44rem;
  font-size: clamp(17px, 2.3vw, 21px);
  line-height: 1.8;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(173, 194, 227, 0.3);
}

.button.primary {
  border-color: rgba(139, 211, 255, 0.42);
  background: linear-gradient(135deg, rgba(139, 211, 255, 0.2), rgba(142, 255, 200, 0.16));
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stat {
  padding: 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.stat strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mock {
  position: relative;
  border-radius: 30px;
  border: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(139, 211, 255, 0.22), transparent 22%),
    radial-gradient(circle at 80% 24%, rgba(142, 255, 200, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  padding: 16px;
  overflow: hidden;
}

.hero-art {
  display: grid;
  place-items: center;
  gap: 18px;
  min-height: 0;
}

.app-store-card {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 30px;
  background: transparent;
  overflow: hidden;
  display: grid;
  place-items: center;
  animation: app-icon-float 9s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes app-icon-float {
  to {
    transform: translate3d(0, -14px, 0);
  }
}

.app-store-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mask-image: var(--app-icon-mask);
  -webkit-mask-image: var(--app-icon-mask);
}

.app-store-banner {
  display: inline-block;
  align-self: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.app-store-banner img {
  display: block;
  width: 210px;
  height: 77px;
  vertical-align: middle;
  object-fit: contain;
}

.screen {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(173, 194, 227, 0.14);
  backdrop-filter: blur(18px);
}

.screen-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
}

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

.slot {
  min-height: 120px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(173, 194, 227, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slot-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slot-title {
  font-size: 20px;
  font-weight: 700;
}

.slot-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.slot.a {
  box-shadow: inset 0 0 0 1px rgba(139, 211, 255, 0.12);
}

.slot.b {
  box-shadow: inset 0 0 0 1px rgba(142, 255, 200, 0.1);
}

.slot.c {
  box-shadow: inset 0 0 0 1px rgba(255, 211, 142, 0.12);
}

.section {
  padding: 12px 0 0;
}

.section-title {
  margin: 0 0 14px;
  font-size: 15px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.panel h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.panel-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-actions {
  margin-top: 18px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(173, 194, 227, 0.12);
}

.faq-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.faq-item span {
  display: block;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  padding: 30px 0 48px;
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 920px) {
  .hero,
  .split,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 22px, 1120px);
  }

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

  .language-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .mock {
    padding: 14px;
    border-radius: 24px;
  }

  .hero-art {
    min-height: 0;
  }

  .screen {
    padding: 12px;
    border-radius: 20px;
  }

  .slot-grid {
    grid-template-columns: 1fr;
  }

  .slot {
    min-height: 104px;
  }

  .app-store-card {
    width: min(300px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .app-store-card {
    animation: none;
  }
}
