:root {
  --bg: #f6f4ef;
  --fg: #1a1917;
  --muted: #6b645b;
  --accent: #8b5a2b;
  --border: #e7e2d8;
  --card: #fbf9f4;
  --max: 960px;
  --radius: 12px;
  --radius-lg: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --fg: #f1ede3;
    --muted: #9e958a;
    --accent: #d4a567;
    --border: #2a2824;
    --card: #1d1b17;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

/* Navigation */
.nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
}
.brand .dot {
  color: var(--accent);
}
.lang-switch {
  font-size: 13px;
  color: var(--muted);
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 14px;
}
.lang-switch a.active {
  color: var(--fg);
  font-weight: 600;
}
.lang-switch a:hover {
  color: var(--fg);
}

/* Hero */
.hero {
  padding: 96px 0 80px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 24px;
}
.hero .lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 44px;
  line-height: 1.75;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--fg);
  color: var(--bg);
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.cta-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

/* Section base */
section.block {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
section.block h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 48px;
}

/* Features */
.feature-list {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
    gap: 56px 48px;
  }
}
.feature .index {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.feature h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.feature p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* Screenshots */
.shot-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.shot {
  text-align: center;
}
.shot-frame {
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(135deg, var(--card), var(--border));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
img.shot-frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 1385;
  object-fit: cover;
  padding: 0;
  background: var(--card);
}
.shot-caption {
  font-size: 13px;
  color: var(--muted);
}

/* Bottom CTA */
.bottom-cta {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.bottom-cta h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 20px;
}
.footer-links a:last-child {
  margin-right: 0;
}
.footer-links a:hover {
  color: var(--fg);
}

/* Policy / Terms pages */
.policy {
  padding: 56px 0 96px;
  max-width: 740px;
  margin: 0 auto;
}
.policy > .container-inner {
  padding: 0 24px;
}
.policy h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.policy .meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 40px;
}
.policy h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 44px 0 16px;
  letter-spacing: -0.01em;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.policy h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.policy h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 10px;
}
.policy p,
.policy ul,
.policy ol,
.policy .table-wrap {
  margin-bottom: 16px;
  font-size: 15px;
}
.policy ul,
.policy ol {
  padding-left: 24px;
}
.policy li {
  margin-bottom: 6px;
}
.policy .table-wrap {
  overflow-x: auto;
}
.policy table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.policy th,
.policy td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.policy th {
  background: var(--card);
  font-weight: 600;
}
.policy code {
  background: var(--card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid var(--border);
}
.policy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.policy .note {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* 404 */
.center-pad {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.center-pad h1 {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.center-pad p {
  color: var(--muted);
  margin-bottom: 32px;
}
