:root {
  --black: #000;
  --ink: #141414;
  --slate: #272729;
  --card: #141414;
  --line: #38383b;
  --text: #f5f5f7;
  --soft: #d2d2d7;
  --muted: #86868b;
  --blue: #0071e3;
  --blue-hi: #2997ff;
  --wrap: 980px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 44px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.47 system-ui, -apple-system, "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue-hi); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }

/* ---------- Dual language: Twi first, English on hover ---------- */
.t { display: grid; }
a.t, button.t, .btn .t, span.t { display: inline-grid; }
.t > span {
  grid-area: 1 / 1;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.t > span[lang="en"] { opacity: 0; visibility: hidden; }

:is(.t:hover, .flip:hover .t, .flip:focus-within .t, .flip.on .t, .t.on, body.en .t) > span[lang="en"] {
  opacity: 1;
  visibility: visible;
}
:is(.t:hover, .flip:hover .t, .flip:focus-within .t, .flip.on .t, .t.on, body.en .t) > span[lang="tw"] {
  opacity: 0;
  visibility: hidden;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 44px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.brand img { width: 24px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: #fff;
  font-size: 12px;
  letter-spacing: -0.01em;
  padding: 0 8px;
  opacity: 0.86;
  text-align: center;
}
.nav-links a:hover { opacity: 1; }
.lang-toggle {
  margin-left: 6px;
  padding: 3px 11px;
  font: inherit;
  font-size: 12px;
  color: var(--blue-hi);
  background: none;
  border: 1px solid rgba(41, 151, 255, 0.55);
  border-radius: 980px;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--blue-hi); }
.lang-toggle[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 110px 0; text-align: center; }
.dark { background: var(--ink); }
.grey { background: var(--slate); }
.mid { background: #1d1d1f; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
}
h1, h2, h3 { margin: 0; font-weight: 600; color: #fff; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.6vw, 56px); line-height: 1.07; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4.2vw, 40px); line-height: 1.1; letter-spacing: -0.025em; }
.sub {
  margin: 14px 0 0;
  font-size: clamp(21px, 2.8vw, 28px);
  line-height: 1.2;
  color: var(--soft);
}
.lead {
  margin: 18px auto 0;
  max-width: 780px;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--soft);
  text-wrap: pretty;
}
.body {
  margin: 16px auto 0;
  max-width: 720px;
  color: var(--soft);
  text-wrap: pretty;
}
.sub-h { margin-top: 44px; font-size: 21px; }

/* ---------- Hero ---------- */
.hero { background: var(--black); padding: 36px 0 96px; }
.hero .banner { width: min(100%, 1180px); margin: 0 auto 28px; }
.hero .lead { max-width: 700px; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.3; }
.hint {
  margin: 30px 0 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
}

/* ---------- Buttons ---------- */
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 17px;
  line-height: 1.3;
  text-align: center;
  color: #fff;
  background: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 980px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover { background: #0077ed; }
.btn.ghost { background: none; color: var(--blue-hi); border-color: rgba(41, 151, 255, 0.5); }
.btn.ghost:hover { border-color: var(--blue-hi); }
.btn.big { padding: 13px 28px; }

.pill {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue-hi);
  border: 1px solid var(--blue);
  border-radius: 980px;
}

/* ---------- Cards ---------- */
.cards { margin-top: 44px; display: grid; gap: 20px; text-align: left; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); max-width: 840px; margin-inline: auto; }
.cards.five { grid-template-columns: repeat(5, 1fr); gap: 14px; text-align: center; }

.card {
  padding: 24px 24px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.dark .card { background: #1d1d1f; }
.card h3 { font-size: 17px; letter-spacing: -0.02em; }
.card p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; letter-spacing: -0.01em; color: var(--soft); }
.card .label { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--soft); }
.card.step h3 { font-size: 21px; }
.card.plain { background: none; border-color: transparent; }
.card.accent { background: none; border-color: var(--blue); }
.card.accent .label { color: var(--blue-hi); }

.social { padding: 30px 12px 26px; background: none; border-color: rgba(255, 255, 255, 0.05); color: inherit; display: block; }
a.social:hover { border-color: var(--line); }
.social svg { width: 40px; height: 40px; margin: 0 auto 14px; display: block; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.social .go { color: var(--blue-hi); }
.social .soon { color: var(--muted); }

/* ---------- Big word ---------- */
.big-word {
  margin: 4px 0 0;
  font-size: clamp(72px, 12vw, 104px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
}

/* ---------- Footer ---------- */
footer { background: var(--slate); padding: 44px 0; font-size: 12px; color: var(--muted); letter-spacing: 0; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer .mark { display: inline-flex; align-items: center; gap: 10px; }
footer .mark img { width: 30px; opacity: 0.8; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  section { padding: 76px 0; }
  .hero { padding: 20px 0 72px; }
  .cards.three, .cards.two { grid-template-columns: 1fr; }
  .cards.five { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .t > span { transition: none; }
}
