:root {
  color-scheme: dark;
  --ink: #1b1a17;
  --slate: #384651;
  --sand: #f5efe6;
  --oat: #efe3d1;
  --coral: #f07f5a;
  --sage: #3f7f6e;
  --sea: #4a9ca0;
  --glow: #f7c7a2;
  --shadow: 0 24px 60px rgba(27, 26, 23, 0.16);
  --nav-height: 56px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: var(--ink);
  background: #0c0c0c;
  scroll-behavior: smooth;
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: "Noto Serif JP", "Fraunces", "Times New Roman", serif;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: var(--slate);
}

.hero {
  padding: 2.5rem 6vw 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 127, 90, 0.25), transparent 65%);
  top: -120px;
  right: -120px;
  z-index: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  padding: 0 4vw;
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.brand {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.88rem;
}

.nav-links a {
  text-decoration: none;
  color: #f2efe9;
  font-weight: 500;
}

.nav-cta {
  background: #8b6be8;
  color: #f6f2ff;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(139, 107, 232, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  background: #f2efe9;
  border-radius: 999px;
  display: block;
}

.snap-container {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  background: #0c0c0c;
  scrollbar-width: none;
}

.snap-container::-webkit-scrollbar {
  width: 0;
}

.snap-section {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  scroll-margin-top: var(--nav-height);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  margin-top: 3.5rem;
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--sage);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.hero h1 span {
  color: var(--sage);
}

.subhead {
  font-size: 1.1rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

button {
  border: none;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 16px 30px rgba(240, 127, 90, 0.35);
}

.ghost {
  background: transparent;
  border: 1px solid rgba(27, 26, 23, 0.2);
  color: var(--ink);
}

.trust {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.trust strong {
  display: block;
  font-size: 1.4rem;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.device {
  width: min(320px, 80vw);
  background: #1e2426;
  border-radius: 32px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.device-screen {
  background: linear-gradient(150deg, #f8ede0 0%, #dde8e2 100%);
  border-radius: 24px;
  padding: 1.2rem;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.screenshot-stack {
  display: grid;
  gap: 1rem;
}

.screenshot-stack img {
  width: 100%;
  border-radius: 18px;
  background: #fff;
  padding: 0.5rem;
  box-shadow: 0 12px 30px rgba(27, 26, 23, 0.12);
  animation: breathe 6s ease-in-out infinite;
}

.screenshot-stack img:last-child {
  animation-delay: 1.2s;
}

.reading {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.reading p {
  margin-bottom: 0.3rem;
}

.floating-card {
  position: absolute;
  right: -2rem;
  bottom: 1.5rem;
  background: #fff;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 200px;
  animation: float 5s ease-in-out infinite;
}

.floating-card p {
  font-weight: 600;
  color: var(--ink);
}

.section:not(.snap-section) {
  padding: 4rem 6vw;
}

.section-title {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.features {
  background: var(--sand);
  border-radius: 48px;
  margin: 0 4vw;
}

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

.card {
  background: #fff;
  border-radius: 24px;
  padding: 1.6rem;
  box-shadow: 0 20px 45px rgba(27, 26, 23, 0.08);
  min-height: 210px;
}

.rituals {
  position: relative;
}

.timeline {
  display: grid;
  gap: 1.5rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 1.5rem;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(27, 26, 23, 0.08);
}

.step-number {
  background: var(--glow);
  color: var(--ink);
  font-weight: 700;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
}

.play {
  background: linear-gradient(160deg, #fff3e8, #e7f0ea);
  border-radius: 48px;
  margin: 0 4vw;
}

.play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.metrics {
  display: flex;
  gap: 1.5rem;
}

.metrics strong {
  display: block;
  font-size: 1.1rem;
  color: var(--ink);
}

.puzzle-frame {
  background: #fff;
  border-radius: 32px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.puzzle-grid span {
  background: var(--oat);
  border-radius: 18px;
  padding: 1.4rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.puzzle-grid .blank {
  background: linear-gradient(130deg, #f8f4ef, #f0e1d1);
}

.puzzle-caption {
  margin-top: 1.5rem;
  text-align: center;
  font-weight: 500;
}

.testimonials {
  padding-bottom: 5rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.quote-card {
  background: #fff;
  padding: 1.6rem;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(27, 26, 23, 0.08);
}

.quote-card span {
  font-weight: 600;
  color: var(--ink);
}

.screenshots {
  background: #fdf7f0;
}

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

.shot {
  margin: 0;
  background: #fff;
  border-radius: 28px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.shot img {
  border-radius: 20px;
  background: #fff;
  padding: 0.4rem;
}

.shot figcaption {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--slate);
}

.footer {
  background: #0b0b0b;
  color: #fff;
  border-radius: 36px;
  margin: 0 auto;
  width: min(1120px, 100%);
  padding: 3rem 4vw;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h2,
.footer p,
.footer span {
  color: #fff;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  padding: 2.2rem 3vw;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(140deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.75));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.footer .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2efe9;
  color: #101010;
  text-decoration: none;
  gap: 0.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.9rem;
}

.footer-section {
  background: radial-gradient(circle at top right, rgba(139, 107, 232, 0.28), transparent 55%),
    radial-gradient(circle at 10% 30%, rgba(74, 156, 160, 0.18), transparent 50%),
    #0b0b0b;
  color: #fff;
  padding: calc(var(--nav-height) + 2rem) 6vw 3rem;
  align-items: center;
}

.footer-stack {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.footer-section h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.01em;
}

.footer-section p {
  color: #f2efe9;
  max-width: 520px;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.footer-actions .primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: #f2efe9;
  color: #101010;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.ios-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f2efe9;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 239, 233, 0.3);
  background: rgba(12, 12, 12, 0.35);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.footer-store-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f2efe9;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-store h2 {
  margin-top: 0.5rem;
}

.footer-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 240px;
  height: 56px;
  padding: 0 1.6rem;
  border-radius: 18px;
  text-decoration: none;
  background: #f2efe9;
  color: #101010;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.footer-download-button--ios {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-content--ios {
  align-items: center;
}

.footer-content--ios h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.footer-content--ios > div:first-child {
  flex: 1 1 auto;
}

.footer-content--ios .footer-download-button {
  align-self: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.8s ease forwards;
}

.feature-grid .reveal:nth-child(2) {
  animation-delay: 0.1s;
}

.feature-grid .reveal:nth-child(3) {
  animation-delay: 0.2s;
}

.feature-grid .reveal:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-media,
.screen-media img {
  width: 100%;
  height: 100%;
  display: block;
}

.screen-media {
  flex: 1 1 auto;
}

.screen-media img {
  object-fit: cover;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-download-button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .nav-burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 0 1.6rem;
    background: rgba(12, 12, 12, 0.94);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-toggle:checked + .nav-burger + .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 901px) {
  .snap-section {
    padding: 0 2.5vw;
  }

  .screen-media {
    border-radius: 24px;
    overflow: hidden;
  }

  .screen-media img {
    object-fit: contain;
    background: #0c0c0c;
  }
}

/* Disable touch callout and text selection to suppress long-press context menus on mobile */
html,
body,
img,
button,
a {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Prefer built-in manipulation behaviour for touch interactions */
body {
  touch-action: manipulation;
}
