:root {
  --primary: #E67E22;
  --secondary: #005BB2;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #666666;
  --border: #E5E5E5;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.lang-switcher {
  position: relative;
}
.lang-switcher select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 32px 7px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ─── Hero ─── */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}
.hero img.icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hero p.lede {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* ─── Features ─── */
.section {
  padding: 56px 0;
}
.section h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}
.section p.section-lede {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 36px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.feature-card .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #F39C12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ─── Screenshots ─── */
.screenshots-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screenshots-row::-webkit-scrollbar { height: 6px; }
.screenshots-row::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.screenshots-row img {
  flex: 0 0 auto;
  width: 240px;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  scroll-snap-align: start;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}
.site-footer .links {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.site-footer .links a {
  color: var(--text-secondary);
}

/* ─── Legal pages ─── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.legal-page .updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.legal-page h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
}
.legal-page p,
.legal-page li {
  font-size: 15px;
  margin-bottom: 10px;
}
.legal-page ul,
.legal-page ol {
  padding-left: 22px;
  margin-bottom: 14px;
}
.legal-page .back-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  color: var(--secondary);
}

/* Hidden sections (used for multi-language top page) */
.lang-section { display: none; }
.lang-section.active { display: block; }

/* Responsive */
@media (max-width: 600px) {
  .hero { padding: 40px 0 32px; }
  .section { padding: 40px 0; }
  .screenshots-row img { width: 200px; }
}
