:root {
  --ground: #14100c;
  --ground-raised: #1e170f;
  --ground-card: #221a11;
  --ember: #f0a93a;
  --ember-core: #ffdf9e;
  --ember-dim: #c9873a;
  --bronze: #ab7a45;
  --line: rgba(171, 122, 69, 0.28);
  --ink: #ece3d3;
  --ink-muted: #a89a83;
  --serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Zen Kaku Gothic New", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --measure: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

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

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--ember-dim);
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  text-wrap: balance;
  letter-spacing: 0.02em;
  margin: 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(20, 16, 12, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: #fdf9f0;
  box-shadow: 0 0 10px rgba(240, 169, 58, 0.55);
  flex: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-word {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}
.nav-cta {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border: 1px solid var(--bronze);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ember); color: #1a1108; border-color: var(--ember); }

/* ---------- product hero ---------- */
.product-hero {
  position: relative;
  text-align: center;
  padding: 88px 24px 64px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 223, 158, 0.14), transparent 55%),
    radial-gradient(circle at 75% 60%, rgba(240, 169, 58, 0.1), transparent 55%);
  pointer-events: none;
}
.product-back {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
  color: var(--ink-muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.product-back:hover { color: var(--ember-core); }
.product-hero .tag {
  position: relative;
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--ember);
  border: 1px solid var(--ember-dim);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 20px;
}
.product-hero h1 {
  position: relative;
  font-size: clamp(2.1rem, 6.5vw, 3.4rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 auto 18px;
  max-width: 720px;
}
.product-hero h1 em {
  font-style: normal;
  color: var(--ember-core);
  text-shadow: 0 0 30px rgba(240, 169, 58, 0.4);
}
.product-hero .sub {
  position: relative;
  color: var(--ink-muted);
  font-size: 1.02rem;
  max-width: 560px;
  margin: 0 auto 32px;
}
.product-hero .btn-primary { position: relative; }

/* ---------- section shell ---------- */
.product-section { padding: 64px 0; border-top: 1px solid var(--line); }
.product-section:first-of-type { border-top: none; }
.product-section h2 {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  margin-bottom: 20px;
  color: var(--ink);
  text-align: center;
}
.product-section > .wrap > p.lead {
  color: var(--ink-muted);
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* ---------- feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 36px;
}
.feature-card {
  background: var(--ground-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    border-color: var(--ember-dim);
    box-shadow: 0 0 32px rgba(240, 169, 58, 0.12);
    transform: translateY(-3px);
  }
}
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--ink);
  text-shadow: 0 0 14px rgba(240, 169, 58, 0.5), 0 0 34px rgba(240, 169, 58, 0.28);
}
.feature-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
}
@media (min-width: 780px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- screenshot gallery ---------- */
.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
.screenshot-card {
  background: var(--ground-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.screenshot-card img {
  width: 100%;
  display: block;
  border-bottom: 1px solid var(--line);
}
.screenshot-card .caption {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
@media (min-width: 700px) {
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- cta ---------- */
.product-cta {
  text-align: center;
  padding: 64px 0 96px;
  border-top: 1px solid var(--line);
}
.product-cta h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin-bottom: 16px; }
.product-cta p { color: var(--ink-muted); margin: 0 auto 28px; max-width: 480px; }

.btn-primary, .btn-ghost {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--ember-dim));
  color: #1a1108;
  box-shadow: 0 8px 24px rgba(240, 169, 58, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(240, 169, 58, 0.4); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink-muted);
}
.btn-ghost:hover { border-color: var(--ember); color: var(--ember-core); }

/* ---------- footer ---------- */
footer {
  padding: 48px 24px 64px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}
footer .brand { justify-content: center; margin-bottom: 10px; }
footer .tagline { letter-spacing: 0.08em; margin: 6px 0 18px; }

@media (min-width: 780px) {
  .wrap { padding: 0 32px; }
  body { font-size: 17.5px; }
}
