:root {
  --bg: #fdf8f3;
  --bg-tint: #fef3e9;
  --surface: #ffffff;
  --text: #1a2538;
  --text-soft: #4a5468;
  --text-mute: #8a93a4;
  --border: #ede4d8;
  --border-strong: #d9cdbb;
  --sunset: #ff6a3d;
  --sunset-dark: #e8542a;
  --sunset-soft: #ffe7dc;
  --ocean: #1fc4d4;
  --ocean-dark: #0fa3b2;
  --ocean-soft: #d8f4f7;
  --sand: #f4d8a8;
  --shadow: 0 1px 2px rgba(26, 37, 56, 0.04), 0 8px 24px rgba(26, 37, 56, 0.06);
  --shadow-lg: 0 4px 12px rgba(26, 37, 56, 0.06), 0 16px 48px rgba(26, 37, 56, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1320;
    --bg-tint: #131c2e;
    --surface: #18223a;
    --text: #f3f5f9;
    --text-soft: #b8c0d0;
    --text-mute: #7a839a;
    --border: #243149;
    --border-strong: #324363;
    --sunset: #ff7d52;
    --sunset-dark: #ff6a3d;
    --sunset-soft: #3a1f17;
    --ocean: #2dd6e6;
    --ocean-dark: #1fc4d4;
    --ocean-soft: #122c33;
    --sand: #c4a36a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.3), 0 16px 48px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

a {
  color: var(--sunset);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--sunset-dark); text-decoration: underline; }

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

/* ---------- Header ---------- */
header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(8px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand img.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}
.brand a { color: inherit; }
nav.site-nav a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  margin-left: 22px;
  transition: color 0.15s ease;
}
nav.site-nav a:hover { color: var(--sunset); text-decoration: none; }
nav.site-nav a.lang-switch {
  display: inline-block;
  margin-left: 22px;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}
nav.site-nav a.lang-switch:hover {
  background: var(--sunset);
  border-color: var(--sunset);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(255, 106, 61, 0.18) 0%, transparent 60%),
    radial-gradient(60% 80% at 100% 30%, rgba(31, 196, 212, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, var(--border-strong) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
}
.hero > .container {
  position: relative;
}
.hero img.hero-icon {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  display: block;
  margin: 0 auto 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 12px 32px rgba(255, 106, 61, 0.25),
    0 24px 56px rgba(31, 196, 212, 0.22);
}
.hero h1 {
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 900;
  margin: 0 0 18px;
  letter-spacing: -0.035em;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--sunset) 0%, var(--ocean-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-soft);
  margin: 0 auto 36px;
  max-width: 560px;
  font-weight: 500;
}
.hero .tag {
  display: inline-block;
  padding: 7px 14px;
  background: var(--surface);
  color: var(--ocean-dark);
  border: 1px solid var(--ocean-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sunset) 0%, var(--sunset-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 106, 61, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 106, 61, 0.45);
  color: #fff;
  text-decoration: none;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--ocean);
  color: var(--ocean-dark);
  text-decoration: none;
}

/* ---------- Section ---------- */
section {
  padding: 80px 0;
  position: relative;
}
section + section { border-top: 1px solid var(--border); }
section h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
section h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
section h2 + p,
.section-lede {
  color: var(--text-soft);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 640px;
}
section p {
  margin: 0 0 18px;
  color: var(--text-soft);
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sunset-soft);
  color: var(--sunset);
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: 700;
}
.feature:nth-child(2n) .icon {
  background: var(--ocean-soft);
  color: var(--ocean-dark);
}
.feature h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ---------- Info table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }
.info-table th {
  width: 160px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-tint);
}
.info-table td {
  color: var(--text-soft);
}

/* ---------- About block ---------- */
.about-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
}
.about-card strong { color: var(--text); }

/* ---------- Privacy / Terms long-form ---------- */
.long-form { padding: 64px 0 40px; }
.long-form h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.long-form h2 {
  margin-top: 44px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.long-form h3 {
  margin-top: 28px;
  font-size: 17px;
  font-weight: 700;
}
.long-form ul { padding-left: 22px; color: var(--text-soft); }
.long-form li { margin-bottom: 8px; }
.long-form .updated {
  color: var(--text-mute);
  font-size: 13px;
  margin-bottom: 36px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  margin-top: 24px;
  color: var(--text-mute);
  font-size: 13px;
  text-align: center;
  background: var(--bg-tint);
}
footer.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-weight: 700;
}
footer.site-footer .footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
footer.site-footer a {
  color: var(--text-soft);
  margin: 0 10px;
  font-weight: 500;
}
footer.site-footer a:hover { color: var(--sunset); }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero { padding: 72px 0 64px; }
  .hero img.hero-icon { width: 108px; height: 108px; border-radius: 24px; margin-bottom: 22px; }
  section { padding: 56px 0; }
  nav.site-nav a { margin-left: 14px; font-size: 13px; }
  .info-table th { width: 110px; padding: 12px 14px; }
  .info-table td { padding: 12px 14px; }
}
