/* ============ HAIVAN design tokens (khóa theo STYLE.md) ============ */
:root {
  --teal: #16B5A6;
  --teal-deep: #0E8C80;
  --teal-ink: #0A332E;
  --mist: #EAF8F6;
  --ink: #1B1D29;
  --amber: #FFB200;
  --teal-bright: #4FD8C8;
  --line: #D6EBE8;
  --muted: #55635F;
  --radius: 18px;
  --font: 'Nunito', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: #fff; font-size: 17px; line-height: 1.65; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

h1, h2, h3 { font-weight: 900; line-height: 1.2; }
h1 { font-size: clamp(30px, 4.6vw, 46px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 14px; }
h3 { font-size: 20px; }
.lead { font-size: 18px; color: var(--muted); }
a { color: var(--teal-deep); }

.eyebrow {
  display: inline-block; font-weight: 800; font-size: 13.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-deep);
  background: var(--mist); border-radius: 999px; padding: 6px 16px; margin-bottom: 14px;
}
.eyebrow.center { display: table; margin-left: auto; margin-right: auto; }
.eyebrow.light { background: rgba(255,255,255,.12); color: var(--teal-bright); }

/* ============ Buttons — pill theo guideline ============ */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  font-family: var(--font); font-weight: 800; font-size: 16px;
  border-radius: 999px; padding: 14px 28px; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(22,181,166,.32); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-outline { background: transparent; color: var(--teal-deep); box-shadow: inset 0 0 0 2.5px var(--teal); }
.btn-outline:hover { background: var(--mist); }
.btn-amber { background: var(--amber); color: #4a3400; box-shadow: 0 6px 18px rgba(255,178,0,.32); }
.btn-amber:hover { background: #ffc233; }
.btn-lg { padding: 17px 36px; font-size: 17.5px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding: 12px 20px; }
.brand img { display: block; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; font-size: 15.5px; color: var(--ink); }
.nav a:hover { color: var(--teal-deep); }
.header-cta { padding: 11px 22px; font-size: 15px; }

/* ============ Hero ============ */
.hero { position: relative; background: linear-gradient(180deg, #fff 0%, #F4FBFA 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 72px 20px 110px; }
.hero h1 em { font-style: normal; color: var(--teal-deep); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px;
  background: var(--amber); opacity: .38; border-radius: 6px; z-index: -1;
}
.hero .lead { margin: 18px 0 26px; max-width: 54ch; }

.mini-form { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-form input {
  flex: 1 1 180px; font-family: var(--font); font-size: 16px;
  padding: 13px 18px; border: 2px solid var(--line); border-radius: 999px; background: #fff;
}
.mini-form input:focus { outline: none; border-color: var(--teal); }
.form-note { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Hero visual — sunrise signature */
.hero-visual { position: relative; display: flex; justify-content: center; }
.sunrise {
  width: min(320px, 70vw); aspect-ratio: 1; background: var(--teal);
  border-radius: 24%; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  box-shadow: 0 24px 60px rgba(14,140,128,.28);
}
.sunrise .sun {
  width: 38%; aspect-ratio: 2 / 1; background: var(--amber);
  border-radius: 999px 999px 0 0; animation: sunrise 1.6s cubic-bezier(.2,.7,.3,1) both .2s;
}
.sunrise .bar { height: 9%; border-radius: 999px; background: #fff; animation: barin .8s ease both; }
.sunrise .b1 { width: 48%; animation-delay: .7s; }
.sunrise .b2 { width: 34%; opacity: .62; animation-delay: .9s; }
.sunrise .b3 { width: 20%; opacity: .34; animation-delay: 1.1s; }
@keyframes sunrise { from { transform: translateY(120%); } to { transform: translateY(0); } }
@keyframes barin { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-chip {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 18px; font-size: 13.5px; color: var(--muted); line-height: 1.4;
  box-shadow: 0 10px 30px rgba(27,29,41,.10);
}
.hero-chip strong { display: block; font-size: 17px; color: var(--teal-deep); font-weight: 900; }
.chip-1 { top: 6%; left: -4%; }
.chip-2 { bottom: 4%; right: -2%; }

.wave-divider { display: block; width: 100%; height: 70px; margin-top: -70px; position: relative; }

/* ============ Trust ============ */
.trust { background: var(--mist); padding: 44px 0 54px; }
.trust-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-grid li { background: #fff; border-radius: var(--radius); padding: 22px 20px; font-size: 14.5px; color: var(--muted); }
.trust-grid strong { display: block; font-size: 16.5px; color: var(--ink); margin: 8px 0 4px; }
.t-ico { display: inline-flex; width: 44px; height: 44px; border-radius: 13px; background: var(--mist); color: var(--teal-deep); align-items: center; justify-content: center; }
.t-ico svg { width: 24px; height: 24px; }

/* ============ Pain ============ */
.pain { padding: 84px 0; }
.pain h2 { text-align: center; margin-bottom: 30px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.quotes blockquote {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 22px; font-size: 15.5px; font-weight: 600; color: var(--ink); position: relative;
}
.quotes blockquote::before {
  content: "\201C"; position: absolute; top: -18px; left: 16px; font-size: 54px;
  color: var(--teal); font-weight: 900; line-height: 1;
}
.pain-answer { font-size: 18px; text-align: center; max-width: 62ch; margin: 0 auto; color: var(--muted); }
.pain-answer strong { color: var(--teal-deep); }

/* ============ Services ============ */
.services { background: var(--mist); padding: 84px 0; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.svc-card { background: #fff; border-radius: 22px; padding: 34px 30px; display: flex; flex-direction: column; }
.svc-tag {
  align-self: flex-start; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--teal); color: #fff; border-radius: 999px; padding: 5px 14px; margin-bottom: 16px;
}
.svc-tag.alt { background: var(--amber); color: #4a3400; }
.svc-card p { color: var(--muted); margin: 10px 0 14px; }
.svc-card ul { list-style: none; margin-bottom: 24px; flex: 1; }
.svc-card li { padding: 7px 0 7px 30px; position: relative; font-size: 15.5px; }
.svc-card li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--mist);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4 10-10' fill='none' stroke='%230E8C80' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}
.svc-card .btn { align-self: flex-start; }

/* ============ Roadmap ============ */
.roadmap { padding: 84px 0; }
.steps { list-style: none; margin-top: 40px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding-top: 20px; }
.steps li::before {
  content: ""; position: absolute; top: 42px; left: 50%; right: -60%;
  height: 3px; background: var(--line); border-radius: 2px;
}
.steps li:last-child::before { display: none; }
.step-dot {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; background: var(--teal); color: #fff;
  font-weight: 900; font-size: 19px; margin-bottom: 14px; box-shadow: 0 6px 16px rgba(22,181,166,.3);
}
.steps h3 { font-size: 16.5px; margin-bottom: 6px; }
.steps p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.step-meta { font-size: 12.5px; font-weight: 800; color: var(--teal-deep); background: var(--mist); border-radius: 999px; padding: 4px 12px; display: inline-block; }

/* ============ Why ============ */
.why { background: var(--mist); padding: 84px 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
.why-item { background: #fff; border-radius: var(--radius); padding: 28px 26px; border-top: 5px solid var(--teal); }
.why-item:nth-child(2) { border-top-color: var(--amber); }
.why-item:nth-child(3) { border-top-color: var(--teal-deep); }
.why-item:nth-child(4) { border-top-color: var(--teal-bright); }
.why-item p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }

/* ============ Tokutei (dark) ============ */
.tokutei { background: var(--teal-ink); color: #fff; padding: 90px 0; }
.tokutei h2 { color: #fff; }
.tokutei-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.tokutei-copy > p { color: rgba(255,255,255,.78); margin: 14px 0 20px; }
.tick-list { list-style: none; margin-bottom: 28px; }
.tick-list li { padding: 8px 0 8px 32px; position: relative; color: rgba(255,255,255,.9); font-size: 16px; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4 10-10' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.tick-list strong { color: var(--teal-bright); }
.tokutei-stat { display: flex; flex-direction: column; gap: 16px; }
.stat-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 22px 26px; font-size: 14.5px; color: rgba(255,255,255,.72);
}
.stat-num { display: block; font-size: 30px; font-weight: 900; color: var(--teal-bright); line-height: 1.15; }

/* ============ Proof ============ */
.proof { padding: 84px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.proof-card { background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 28px 26px; }
.avatar-ph {
  width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 900; margin-bottom: 16px;
}
.proof-card blockquote { font-size: 15.5px; margin-bottom: 14px; }
.proof-card figcaption { font-size: 13.5px; font-weight: 700; color: var(--teal-deep); }

/* ============ Office ============ */
.office { background: var(--mist); padding: 84px 0; }
.office-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.office-copy > p { color: var(--muted); margin: 12px 0 18px; }
.office-facts { list-style: none; }
.office-facts li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.loc-card {
  background: #fff; border-radius: 22px; padding: 36px 32px; text-align: center;
  box-shadow: 0 14px 40px rgba(14,140,128,.14); border-top: 6px solid var(--teal);
}
.loc-pin { display: inline-flex; width: 58px; height: 58px; border-radius: 50%; background: var(--mist); color: var(--teal-deep); align-items: center; justify-content: center; margin-bottom: 14px; }
.loc-pin svg { width: 30px; height: 30px; }
.loc-addr { font-size: 22px; font-weight: 900; line-height: 1.35; margin-bottom: 10px; }
.loc-note { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.loc-actions { display: flex; flex-direction: column; gap: 10px; }
.img-ph {
  aspect-ratio: 4/3; border-radius: 22px; background: repeating-linear-gradient(45deg, #DDF1EE, #DDF1EE 14px, var(--mist) 14px, var(--mist) 28px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--teal-deep); font-weight: 800; border: 2px dashed var(--teal);
}
.img-ph small { font-weight: 600; }

/* ============ FAQ ============ */
.faq { padding: 84px 0; }
.faq details {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 0 22px; margin-top: 12px; overflow: hidden;
}
.faq details:first-of-type { margin-top: 30px; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 800; font-size: 16.5px;
  padding: 18px 34px 18px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--mist); color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center; font-weight: 900; transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; transform: translateY(-50%); background: var(--teal); color: #fff; }
.faq details p { padding: 0 0 20px; color: var(--muted); font-size: 15.5px; }

/* ============ Final CTA ============ */
.final-cta { background: linear-gradient(180deg, #F4FBFA, var(--mist)); padding: 90px 0; }
.final-cta .lead { margin: 0 auto 30px; max-width: 56ch; }
.big-form { background: #fff; border-radius: 24px; padding: 32px; box-shadow: 0 20px 50px rgba(14,140,128,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.big-form input, .big-form select {
  font-family: var(--font); font-size: 16px; width: 100%;
  padding: 14px 18px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
}
.big-form input:focus, .big-form select:focus { outline: none; border-color: var(--teal); }
.big-form .btn-lg { width: 100%; margin-top: 6px; }
.big-form .form-note { margin-top: 14px; }

/* ============ Footer ============ */
.site-footer { background: var(--teal-ink); color: rgba(255,255,255,.75); padding: 60px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1.2fr .6fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.f-brand p { margin-top: 14px; font-weight: 700; color: var(--teal-bright); }
.f-col h4 { color: #fff; margin-bottom: 10px; font-size: 15.5px; }
.f-col p { font-size: 14.5px; line-height: 1.9; }
.f-col a { color: rgba(255,255,255,.85); }
.legal { padding-top: 20px; }
.legal p { font-size: 12.5px; color: rgba(255,255,255,.45); }

/* ============ Floating ============ */
.zalo-float {
  position: fixed; right: 22px; bottom: 26px; z-index: 60;
  background: #0068FF; color: #fff; text-decoration: none; font-weight: 900; font-size: 15px;
  width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,104,255,.4); transition: transform .15s;
}
.zalo-float:hover { transform: scale(1.08); }
.mobile-bar { display: none; }

/* ============ Reveal motion ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sunrise .sun, .sunrise .bar { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ Mobile pass (thiết kế riêng, không bóp nhỏ) ============ */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero-inner, .tokutei-inner, .office-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-inner { padding: 44px 20px 90px; }
  .trust-grid, .why-grid, .form-row { grid-template-columns: 1fr 1fr; }
  .quotes, .proof-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 6px; }
  .steps li { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; padding: 14px 0; }
  .steps li::before { top: 60px; left: 22px; right: auto; bottom: -8px; width: 3px; height: auto; }
  .steps h3, .steps p, .steps .step-meta { grid-column: 2; }
  .hero-visual { margin-top: 6px; }
  .sunrise { width: min(210px, 55vw); border-radius: 22%; }
  .hero-chip { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .header-cta { display: none; }
  .trust-grid, .why-grid, .form-row { grid-template-columns: 1fr; }
  .mini-form input, .mini-form .btn { flex: 1 1 100%; width: 100%; }
  .zalo-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  }
  .mobile-bar a {
    text-align: center; padding: 15px 10px; font-weight: 900; font-size: 16px; text-decoration: none; color: #fff;
  }
  .mb-call { background: var(--teal-deep); }
  .mb-zalo { background: #0068FF; }
  .pain, .services, .roadmap, .why, .tokutei, .proof, .office, .faq, .final-cta { padding: 60px 0; }
}
