:root {
  --teal: #0f766e;
  --teal-dark: #0b3f3c;
  --ink: #14201f;
  --muted: #5c6b68;
  --line: #e4ddd2;
  --paper: #f6f1e8;
  --card: #fffdf9;
  --max: 1120px;
}

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

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

body {
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 232, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 32, 31, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img,
.app-card img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links { display: flex; gap: 22px; font-size: 0.95rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--teal); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 28px;
  background:
    radial-gradient(820px 420px at 88% 8%, rgba(232, 164, 92, 0.45), transparent 62%),
    radial-gradient(640px 480px at 8% 90%, rgba(15, 118, 110, 0.28), transparent 60%),
    linear-gradient(180deg, #1a2c29 0%, #243833 58%, var(--paper) 100%);
  color: #f7f3ea;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.orb-a {
  width: 280px;
  height: 280px;
  right: 8%;
  top: 40px;
  background: rgba(255, 196, 120, 0.18);
  animation: drift 9s ease-in-out infinite alternate;
}

.orb-b {
  width: 220px;
  height: 220px;
  left: -40px;
  bottom: 40px;
  background: rgba(15, 118, 110, 0.28);
  animation: drift 11s ease-in-out infinite alternate-reverse;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.kicker {
  color: #8fd0c6;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-bottom: 16px;
}

.lead {
  max-width: 34rem;
  font-size: 1.08rem;
  color: rgba(247, 243, 234, 0.82);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover { text-decoration: none; transform: translateY(-1px); }

.button-primary { background: #f4c27a; color: #1c2418; }
.button-primary:hover { background: #ffd59a; }

.button-ghost {
  color: #f7f3ea;
  border: 1px solid rgba(247, 243, 234, 0.35);
}

.button-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.download-label {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fd0c6;
}

.downloads { display: flex; flex-wrap: wrap; gap: 10px; }

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(247, 243, 234, 0.35);
  color: #f7f3ea;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

a.download:hover {
  text-decoration: none;
  background: #f4c27a;
  color: #1c2418;
  border-color: #f4c27a;
}

.hero-mark { justify-self: center; margin: 0; }

.hero-mark img {
  width: min(220px, 56vw);
  height: auto;
  border-radius: 48px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: float 5.5s ease-in-out infinite;
}

.banner { padding: 8px 0 10px; }

.feature-photo {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(28, 36, 24, 0.16);
}

.feature-photo img {
  width: 100%;
  height: auto;
  transform: scale(1.02);
  animation: ken 18s ease-in-out infinite alternate;
}

section { padding: 34px 0 64px; }

h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.stories .kicker,
#he-sinh-thai .kicker,
.contact-box .kicker { color: var(--teal); }

.rail-controls { display: flex; gap: 8px; }

.rail-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.rail-btn:hover { border-color: var(--teal); color: var(--teal); }

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px max(20px, calc((100% - var(--max)) / 2)) 20px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

.shot {
  flex: 0 0 250px;
  scroll-snap-align: start;
  margin: 0;
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(28, 36, 24, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.shot:hover img {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(28, 36, 24, 0.2);
}

.shot figcaption {
  margin-top: 10px;
  font-weight: 700;
  text-align: center;
}

.stories { padding-top: 10px; }

.story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
  margin-bottom: 54px;
}

.story p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }

.story img {
  width: min(300px, 100%);
  height: auto;
  margin-inline: auto;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(28, 36, 24, 0.14);
}

.story-flip { grid-template-columns: 0.9fr 1.1fr; }
.story-flip > div:first-child { order: 2; }

.pair {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.pair img { width: min(210px, 46%); }

.section-lead {
  color: var(--muted);
  max-width: 38rem;
  margin: 8px 0 18px;
}

.ecosystem {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.app-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

a.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  text-decoration: none;
}

.app-card img { width: 64px; height: 64px; border-radius: 16px; flex: none; }

.app-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: rgba(15, 118, 110, 0.1);
}

.app-card h3 { font-size: 1.08rem; margin-bottom: 4px; }
.app-card p { color: var(--muted); }

.app-card-current { box-shadow: inset 0 0 0 2px rgba(15, 118, 110, 0.35); }

.tag {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-box {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.12), transparent 42%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
}

.support-list {
  display: grid;
  gap: 10px;
}

.support-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.support-item:hover {
  text-decoration: none;
  border-color: var(--teal);
}

.support-item strong { font-size: 1rem; }
.support-item span { color: var(--muted); font-size: 0.92rem; }

.contact-box p { color: var(--muted); margin-top: 8px; }

.email {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 800;
  white-space: nowrap;
}

footer {
  padding: 8px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--teal); }

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: none;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .hero-mark.reveal.in img { animation: float 5.5s ease-in-out infinite; }
.js .feature-photo.reveal.in img { animation: ken 18s ease-in-out infinite alternate; }

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-14px); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(18px, -22px, 0); }
}

@keyframes ken {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 860px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
    font-size: 0.86rem;
  }

  .hero {
    padding-top: 28px;
    background:
      radial-gradient(420px 240px at 80% 0%, rgba(232, 164, 92, 0.35), transparent 70%),
      linear-gradient(180deg, #1a2c29 0%, #243833 78%, var(--paper) 100%);
  }

  .hero-inner,
  .story,
  .story-flip { grid-template-columns: 1fr; }

  .ecosystem { grid-template-columns: 1fr 1fr; }

  .story-flip > div:first-child { order: 0; }

  .hero-mark img { width: min(168px, 46vw); border-radius: 36px; }
  .contact-box { grid-template-columns: 1fr; }
  .email { white-space: normal; }
}

@media (max-width: 640px) {
  .ecosystem { grid-template-columns: 1fr; }
}
