:root {
  --ink: #0A0A0A;
  --paper: #F7F7F5;
  --blue: #2563EB;
  --blue-press: #1D4FD7;
  --muted: #6B6B68;
  --hairline: #E4E4E0;
  --radius: 14px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  -webkit-font-smoothing: antialiased;
}

.hub {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---- Language toggle ---- */
.langtoggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  gap: 3px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px;
}

.langtoggle button {
  border: 0;
  background: transparent;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.langtoggle button.is-active {
  background: var(--ink);
  color: #fff;
}

/* Satoshi has no Vietnamese glyphs: VI button text sets in Be Vietnam Pro */
html[data-lang="vi"] .btn-primary,
html[data-lang="vi"] .btn-secondary {
  font-family: "Be Vietnam Pro", "Space Grotesk", sans-serif;
}

/* ---- Brand block ---- */
.brand { display: flex; flex-direction: column; align-items: center; }

.mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 22px;
}

.wordmark {
  font-family: "Satoshi", "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.positioning {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

.tagline {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

/* ---- Link buttons ---- */
.links {
  width: 100%;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* .btn-primary = the guide card: blue, on top, main line + pill, glowing.
   The compass field (JS) points at .btn-primary, so it now aims at the guide. */
.btn-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 58px;
  padding: 10px 24px;
  background: var(--blue);
  color: #fff;
  font-family: "Satoshi", "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary:hover { background: var(--blue-press); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

/* .btn-secondary = the site link: white, single line, below the guide */
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 0 24px;
  background: #fff;
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-family: "Satoshi", "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
}

.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10, 10, 10, 0.08); }
.btn-secondary:active { transform: translateY(0); }

/* breathing glow: draws the eye to the primary (guide) CTA */
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 1px 2px rgba(10, 10, 10, 0.10), 0 0 0 0 rgba(37, 99, 235, 0); }
  50% { box-shadow: 0 1px 2px rgba(10, 10, 10, 0.10), 0 0 26px 3px rgba(37, 99, 235, 0.45); }
}
.btn-primary { animation: ctaGlow 2.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .btn-primary {
    animation: none;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
  }
}

.btn-primary .soon {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 2px 9px;
}

/* ---- Socials ---- */
.socials {
  margin-top: 32px;
  display: flex;
  gap: 16px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  transition: transform 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.social:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }

/* ---- Footer ---- */
.foot {
  margin-top: 40px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---- living wordmark swarm (app.js) ---- */
.swarm {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.wordmark { cursor: default; }

/* staggered entrance, only when the swarm is running (.fx-on).
   Without JS or with reduced motion the page is simply there. */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.fx-on .mark { animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards; }
.fx-on .positioning { animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.65s backwards; }
.fx-on .tagline { animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.75s backwards; }
.fx-on .links { animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.88s backwards; }
.fx-on .socials { animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1s backwards; }
.fx-on .foot { animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.1s backwards; }
