:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --border: #e2e2e2;
  --panel: #f7f7f7;
  --accent: #e2573b;
  --accent-fg: #ffffff;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #f2f2f2;
    --muted: #b3b3b3;
    --border: #2e2e2e;
    --panel: #1c1c1c;
    --accent: #ff7a5c;
    --accent-fg: #1a1a1a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

h2 {
  font-size: 1.4rem;
  margin: 0 0 20px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 20px 48px;
  text-align: center;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.hero-date {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 6.4vw, 2.6rem);
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.05rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-appname {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}

/* confetti: CSS-only, subtle */
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  top: -10%;
  width: 8px;
  height: 14px;
  background: var(--accent);
  opacity: 0.6;
  border-radius: 2px;
  animation: fall 6s linear infinite;
}

.confetti span:nth-child(1) { left: 6%; animation-delay: 0s; }
.confetti span:nth-child(2) { left: 18%; animation-delay: 0.7s; background: var(--fg); opacity: 0.2; }
.confetti span:nth-child(3) { left: 32%; animation-delay: 1.4s; }
.confetti span:nth-child(4) { left: 48%; animation-delay: 2.1s; background: var(--fg); opacity: 0.15; }
.confetti span:nth-child(5) { left: 62%; animation-delay: 2.8s; }
.confetti span:nth-child(6) { left: 74%; animation-delay: 0.3s; background: var(--fg); opacity: 0.2; }
.confetti span:nth-child(7) { left: 84%; animation-delay: 1.1s; }
.confetti span:nth-child(8) { left: 92%; animation-delay: 1.9s; background: var(--fg); opacity: 0.15; }
.confetti span:nth-child(9) { left: 40%; animation-delay: 3.4s; }
.confetti span:nth-child(10) { left: 56%; animation-delay: 4.1s; }

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(220px) rotate(180deg); }
}

@media (prefers-reduced-motion: reduce) {
  .confetti span { animation: none; opacity: 0.25; }
}

/* ---------- letter ---------- */

.letter p {
  margin: 0 0 14px;
}

.letter p:last-child { margin-bottom: 0; }

/* ---------- features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--panel);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.shot-frame {
  aspect-ratio: 9 / 16;
  max-height: 260px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
}

.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shot-placeholder {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.shot-placeholder span {
  font-size: 0.7rem;
  opacity: 0.6;
}

/* ---------- oss ---------- */

.oss-link {
  color: var(--accent);
  font-weight: 600;
  word-break: break-all;
}

.oss-note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- cta ---------- */

.cta {
  text-align: center;
  border-bottom: none;
}

.cta-button {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- footer ---------- */

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}
