:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --fg: #14181d;
  --muted: #5b6672;
  --accent: #0284c7;
  --accent-ink: #ffffff;
  --accent-2: #f59e0b;
  --accent-2-ink: #3a2a00;
  --card: #ffffff;
  --border: #e4e8ee;
  --radius: 14px;
  --maxw: 920px;
  --shadow: 0 1px 3px rgba(20, 24, 29, 0.06), 0 6px 20px rgba(20, 24, 29, 0.05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; }
a { color: var(--accent); }

/* HERO */
.hero {
  background: radial-gradient(1100px 460px at 50% -12%, #e9f3fb 0%, var(--bg) 62%);
  padding: 72px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.brand {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent); }
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  background: #fff; color: var(--muted); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 11px; cursor: pointer; font-weight: 600; font-size: 0.85rem;
}
.lang-switch button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.lead strong { color: var(--fg); }

/* CTA */
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: var(--accent-2); color: var(--accent-2-ink); }
.btn-ghost { background: #fff; color: var(--fg); border-color: var(--border); box-shadow: none; }
.btn-disabled {
  background: var(--bg-soft); color: var(--muted); cursor: not-allowed; pointer-events: none;
  border-color: var(--border); box-shadow: none;
}
.btn-disabled::after { content: " ⏳"; }
.micro { color: var(--muted); font-size: 0.85rem; margin-top: 20px; }

/* FEATURES */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 56px 20px; }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature h2 { font-size: 1.1rem; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.section-title { font-size: 1.5rem; text-align: center; margin: 0 0 28px; letter-spacing: -0.01em; }

/* GALLERY */
.gallery { padding: 24px 20px 56px; }
.gallery .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border);
}
.gallery .img-ph {
  aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--bg-soft);
  border: 1px dashed var(--border); display: grid; place-items: center;
  font-size: 2rem; color: var(--muted);
}

/* HOW */
.how { padding: 24px 20px 56px; }
.how ol { max-width: 520px; margin: 0 auto; padding-left: 22px; color: var(--muted); }
.how li { margin-bottom: 10px; }

/* FOOTER */
footer { padding: 28px 0; text-align: center; border-top: 1px solid var(--border); }
footer p { color: var(--muted); font-size: 0.8rem; margin: 0; }

@media (max-width: 680px) {
  .features, .gallery .grid { grid-template-columns: 1fr; }
}
