/* Trang giới thiệu (landing) + chân trang dùng chung */
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }
.muted { color: var(--muted); }

/* thanh trên cùng */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); transition: box-shadow var(--t), background var(--t); }
.nav.scrolled { box-shadow: 0 4px 24px rgba(15,76,138,.1); background: rgba(255,255,255,.94); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav-brand img { height: 46px; width: auto; }
.nav-brand .brand-text b { font-size: 17px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { color: var(--ink); font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: background var(--t), color var(--t); }
.nav-links a:hover { background: var(--blue-soft); color: var(--blue-dark); }

/* phần mở đầu */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background:
  radial-gradient(1200px 500px at 85% -10%, #d6e8f8 0%, transparent 60%), linear-gradient(180deg, #fff 0%, var(--blue-mist) 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 14s ease-in-out infinite; pointer-events: none; }
.b1 { width: 340px; height: 340px; background: #8fc2ee; top: -80px; left: -60px; }
.b2 { width: 260px; height: 260px; background: var(--yellow); opacity: .35; bottom: -60px; left: 38%; animation-delay: -5s; }
.b3 { width: 300px; height: 300px; background: #b9d8f5; top: 30%; right: -80px; animation-delay: -9s; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-block; background: var(--yellow-soft); color: #8a6200; font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--blue); background: linear-gradient(transparent 62%, var(--yellow-soft) 62%); }
.lead { font-size: 17px; color: #34495e; margin: 20px 0 28px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F9D55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center/contain no-repeat; }

/* hình minh họa */
.hero-art { position: relative; }
.mock { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; transition: transform .25s ease-out; animation: float 7s ease-in-out infinite; }
.mock-bar { display: flex; align-items: center; gap: 6px; background: var(--blue); color: #fff; padding: 12px 16px; font-size: 13px; font-weight: 600; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); }
.mock-bar span { margin-left: 10px; }
.mock-body { display: grid; grid-template-columns: 70px 1fr; min-height: 260px; }
.mock-side { background: var(--blue-mist); padding: 16px 12px; display: grid; gap: 10px; align-content: start; }
.mock-side b { height: 28px; border-radius: 10px; background: var(--yellow); }
.mock-side u { height: 10px; border-radius: 6px; background: #d5e3f1; }
.mock-side u.on { background: var(--blue); }
.mock-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.mock-folders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mf { background: var(--blue-mist); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; font-size: 12px; font-weight: 600; animation: pop .6s var(--ease) both; }
.mf:nth-child(2) { animation-delay: .12s; } .mf:nth-child(3) { animation-delay: .24s; }
.mf .i { width: 30px; height: 30px; color: #E3A600; fill: var(--yellow-soft); stroke-width: 1.4; display: block; margin: 0 auto 6px; }
.mock-file { display: grid; grid-template-columns: 12px 1fr 90px; gap: 10px; align-items: center; font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mock-file em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-file .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.mock-file .dot.y { background: var(--yellow); }
.mock-file .bar { height: 6px; background: #e6eef6; border-radius: 4px; overflow: hidden; }
.mock-file .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #5aa5e6); border-radius: 4px; animation: fill 3.6s ease-in-out infinite; }
@keyframes fill { 0% { width: 0; } 70%, 100% { width: 100%; } }
.chip .i { width: 16px; height: 16px; color: var(--blue); margin-right: 4px; }
.chip { position: absolute; background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.c1 { top: -14px; right: 4%; }
.c2 { bottom: 18px; left: -22px; animation-delay: -3s; }

/* các khối nội dung */
.sec { padding: 88px 0; }
.sec.alt { background: #fff; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card3 { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); }
.card3:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #bcd6ee; }
.ico { width: 56px; height: 56px; border-radius: 16px; background: var(--blue-soft); display: grid; place-items: center; margin-bottom: 18px; }
.ico .i { width: 28px; height: 28px; color: var(--blue); stroke-width: 1.5; }
.card3 h3 { font-size: 19px; margin-bottom: 8px; }
.card3 p { color: var(--muted); }

.when { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.when-col { background: var(--blue-mist); border-radius: var(--r-lg); padding: 30px; border: 1px solid var(--line); }
.when-col h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 20px; }
.tick { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.tick .i { width: 17px; height: 17px; stroke-width: 2; }
.tick.ok { background: var(--ok); } .tick.no { background: var(--yellow); color: var(--ink); }
.when-col ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.when-col li::marker { color: var(--blue); }

.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 18px; position: relative; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; transition: transform var(--t) var(--ease), box-shadow var(--t); }
.step:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.num { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; font-size: 24px; font-weight: 800; box-shadow: 0 8px 18px rgba(30,115,190,.35); }
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { color: #3d5266; }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto; }
.role { background: var(--blue-mist); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.role-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--blue); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.role-ic .i { width: 26px; height: 26px; stroke-width: 1.5; }
.role-ic.gold { background: var(--yellow); color: var(--ink); }
.role h3 { margin-bottom: 10px; }
.role ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #3d5266; }

.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: ""; width: 20px; height: 20px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E73BE' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform var(--t) var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 22px 20px; color: #3d5266; animation: pageIn .35s var(--ease); }

.cta-band { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; text-align: center; padding: 72px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,194,14,.18); right: -80px; top: -140px; }
.cta-band h2 { font-size: 32px; }
.cta-band p { margin: 10px 0 26px; opacity: .9; }

.site-footer { background: #fff; padding: 40px 0 20px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: 14px; }
.foot-logo { height: 64px; width: auto; margin-bottom: 10px; }
.foot-copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .hero-in, .when, .roles, .foot-grid { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .hero { padding: 40px 0 64px; }
  .c2 { left: 0; }
  .sec { padding: 56px 0; }
  .wrap { width: calc(100% - 32px); }
  .nav-in { height: 60px; }
  .nav-brand img { height: 38px; }
  .hero h1 { font-size: 28px; }
  .lead { font-size: 15px; }
  .hero-cta .btn { width: 100%; }
  .hero-art { padding-top: 10px; }
  .mock-body { grid-template-columns: 44px 1fr; min-height: 0; }
  .mock-main { padding: 12px; }
  .mock-folders { gap: 6px; }
  .mock-file { grid-template-columns: 10px 1fr 56px; }
  .chip { font-size: 12px; padding: 6px 12px; }
  .c1 { right: 0; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; }
  .num { width: 44px; height: 44px; font-size: 20px; border-radius: 14px; }
  .step:hover { transform: none; }
  .when-col, .role, .card3 { padding: 22px; }
  .cta-band { padding: 52px 0; }
}

/* ảnh tập thể */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 240px); gap: 16px; }
.g-item { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; background: var(--blue-soft); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(15,76,138,.25)); pointer-events: none; }
.g-big { grid-column: span 2; grid-row: span 2; }
.g-item:last-child { grid-column: span 2; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 10px; }
  .g-big { grid-column: span 2; grid-row: auto; }
  .g-item { aspect-ratio: 3 / 2; }
}

/* điện thoại: header thoáng, hero có chỗ thở */
@media (max-width: 860px) {
  .wrap { width: calc(100% - 40px); }
  .nav-in { height: 64px; gap: 12px; }
  .nav-brand { min-width: 0; gap: 10px; }
  .nav-brand .brand-text small { display: none; }
  .nav-brand .brand-text b { font-size: 16px; white-space: nowrap; }
  #ctaTop { white-space: nowrap; flex-shrink: 0; padding: 10px 16px; font-size: 14px; }
  .hero { padding: 48px 0 72px; }
  .pill { margin-bottom: 24px; line-height: 1.5; }
  .hero h1 { font-size: 30px; line-height: 1.28; }
  .lead { font-size: 16px; line-height: 1.75; margin: 24px 0 32px; }
  .hero-cta { gap: 16px; }
  .trust { margin-top: 36px; gap: 14px; }
  .hero-art { padding-top: 28px; }
}
