/* 習慣RPG — Landing Page
   Modern single-page, dark theme w/ accent gold */

:root {
  --bg: #0a0a0c;
  --bg-soft: #15151a;
  --bg-card: #1c1c22;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-soft: #a1a1aa;
  --text-muted: #71717a;
  --accent: #ffd23f;
  --accent-soft: #ffe873;
  --radius: 16px;
  --radius-sm: 8px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI",
    "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--text-soft); }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-logo {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}
.nav nav a {
  margin-left: 24px;
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav nav a:hover { color: var(--text); }

/* HERO */
.hero {
  padding: 80px 0 100px;
  background: radial-gradient(
    circle at 80% 0%,
    rgba(255, 210, 63, 0.1) 0%,
    transparent 50%
  );
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-logo {
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}
.hero-copy h1 .accent { color: var(--accent); }
.hero-copy .lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-bottom: 40px;
}
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.app-store img {
  height: 56px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s;
}
.app-store:hover img { transform: scale(1.03); }
.coming {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.hero-shot {
  display: flex;
  justify-content: center;
}
.phone-shot {
  max-width: 320px;
  width: 100%;
  border-radius: 32px;
  padding: 6px;
  background: linear-gradient(145deg, #2a2a32, #1a1a20);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 0 2px rgba(255, 210, 63, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* FEATURES */
.features {
  padding: 80px 0;
  background: var(--bg-soft);
}
.features h2 {
  text-align: center;
  margin-bottom: 48px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover {
  border-color: rgba(255, 210, 63, 0.25);
  transform: translateY(-2px);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: block;
}
.feature h3 { color: var(--text); }
.feature p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

/* SHOWCASE */
.showcase {
  padding: 80px 0;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    #12121a 50%,
    var(--bg) 100%
  );
}
.showcase h2 {
  text-align: center;
  margin-bottom: 48px;
}
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .shots { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .shots { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.shots img {
  width: 100%;
  border-radius: 20px;
  padding: 5px;
  background: linear-gradient(145deg, #2a2a32, #1a1a20);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(255, 210, 63, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.shots img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 0 2px rgba(255, 210, 63, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* HOW */
.how {
  padding: 80px 0;
  background: var(--bg-soft);
}
.how h2 {
  text-align: center;
  margin-bottom: 48px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.steps li {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step-n {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; font-size: 0.95rem; }

/* CTA */
.cta {
  padding: 100px 0;
  text-align: center;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 210, 63, 0.08) 0%,
    transparent 60%
  );
}
.cta h2 {
  margin-bottom: 32px;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* FOOTER */
.foot {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.foot nav a {
  margin-left: 20px;
  color: var(--text-muted);
}
.foot nav a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .cta-row { align-items: center; }
  .steps li { flex-direction: row; }
}
@media (max-width: 480px) {
  .nav nav a { margin-left: 14px; font-size: 0.85rem; }
  .hero { padding: 56px 0 72px; }
  .features, .showcase, .how { padding: 56px 0; }
  .feature { padding: 20px; }
}

/* PRIVACY PAGE */
.content-page {
  padding: 64px 0 80px;
}
.content-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 32px;
}
.content-page h2 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 12px;
}
.content-page p, .content-page li {
  color: var(--text-soft);
  font-size: 0.98rem;
}
.content-page ul { padding-left: 20px; }
.content-page .back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 0.9rem;
}
