:root {
  --bg: #0d1b12;
  --bg-elevated: #13251a;
  --surface: #ffffff;
  --text: #0d1b12;
  --text-muted: #5a6b60;
  --text-on-dark: #f3f7f4;
  --text-on-dark-muted: #a8bcae;
  --accent: #2f9e5f;
  --accent-hover: #268551;
  --border: #e2e8e4;
  --max-width: 1080px;
  --radius: 16px;
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand .mark {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 15px;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero-ridge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding: 96px 24px 160px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(47, 158, 95, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero .lede {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--text-on-dark-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--border, #d9e2dc);
  color: inherit;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.lang-toggle:hover {
  border-color: #2f9e5f;
  color: #2f9e5f;
}

.cta-row {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #2f9e5f;
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
}

.btn-download svg {
  width: 22px;
  height: 22px;
}

.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-on-dark);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.badge:hover {
  transform: translateY(-2px);
}

.badge svg {
  width: 22px;
  height: 22px;
}

.badge .badge-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.6;
  line-height: 1.1;
}

.badge .badge-main {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.badge.is-soon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  cursor: default;
}

.badge.is-soon:hover {
  transform: none;
}

/* ---------- Features ---------- */
.section {
  padding: 88px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 56px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #f7faf8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(47, 158, 95, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card .icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Organizer CTA ---------- */
.organizer-band {
  background: var(--bg-elevated);
  color: var(--text-on-dark);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
}

.organizer-band h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.organizer-band p {
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 17px;
}

.btn-accent {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.15s ease;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.legal h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  color: #2a3a30;
  font-size: 16px;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 22px;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
}

.lang-note {
  background: #f7faf8;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero .wrap {
    padding: 72px 24px 120px;
  }
  .organizer-band {
    padding: 44px 24px;
  }
}
