/* Hải Vân Logistics demo site. Icy blues and teal with one warm accent. */
:root {
  --ink: #0b1f33;
  --navy: #0b2a4a;
  --navy-2: #0e3b5e;
  --deep: #071b30;
  --ice-50: #f5fafe;
  --ice-100: #e8f4fb;
  --ice-200: #d3eaf7;
  --line: #dce9f2;
  --sky: #3ba4e0;
  --sky-300: #7fd0f5;
  --teal: #0fa3a3;
  --teal-700: #0b8287;
  --mint: #7ff0d9;
  --accent: #ff8a3d;
  --accent-700: #e8711f;
  --accent-text: #a8490c;
  --muted: #4d647a;
  --radius: 20px;
  --shadow: 0 18px 44px -22px rgba(11, 42, 74, .38);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.18; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--sky-300); outline-offset: 3px; border-radius: 8px; }

.sprite { display: none; }
.ico {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .6rem 1.05rem; font-size: .92rem; }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(255, 138, 61, .9); }
.btn-accent:hover { background: #ff9a55; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 34, 60, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand img { border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.06rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { font-size: .74rem; color: rgba(255, 255, 255, .64); font-weight: 500; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 10px; transition: color .15s, background-color .15s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cta-short { display: none; }
.hotline { display: inline-flex; align-items: center; gap: 7px; color: var(--mint); font-weight: 700; text-decoration: none; font-size: .95rem; }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); font-size: 1.15rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: 52px; min-width: 220px; padding: 8px;
  background: var(--navy); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .55); display: grid;
}
.menu-panel a { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 10px; text-decoration: none; color: #fff; font-weight: 500; }
.menu-panel a:hover { background: rgba(255, 255, 255, .08); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 64px 0 132px;
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(59, 164, 224, .26), transparent 62%),
    radial-gradient(700px 420px at 8% 100%, rgba(15, 163, 163, .22), transparent 60%),
    linear-gradient(165deg, #0b2a4a 0%, #0d3557 52%, #0c4a5d 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.6px);
  background-size: 30px 30px; opacity: .08;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  color: var(--sky-300); background: rgba(127, 208, 245, .1); border: 1px solid rgba(127, 208, 245, .28);
}
.hero h1 { margin: 20px 0 18px; font-size: clamp(2.25rem, 4.7vw, 3.75rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.hero h1 span {
  display: block;
  background: linear-gradient(90deg, #7fd0f5 0%, #7ff0d9 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.12rem; color: rgba(255, 255, 255, .8); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(255, 255, 255, .78); font-size: .93rem; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .ico { color: var(--mint); }
.hero-art { position: relative; }
.hero-art > img { width: 100%; filter: drop-shadow(0 30px 40px rgba(2, 12, 24, .35)); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 11px;
  padding: 11px 15px 11px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .96); color: var(--ink);
  box-shadow: 0 20px 40px -18px rgba(2, 12, 24, .6);
  animation: float 6s ease-in-out infinite;
}
.float-card div > strong { display: block; font-size: 1.02rem; font-weight: 800; line-height: 1.2; }
.float-card div > span { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; }
.card-temp { top: 4%; left: 0; }
.card-temp strong { font-size: 1.3rem; color: var(--navy); }
.gauge { width: 54px; height: 40px; }
.card-gps { right: 2%; bottom: 3%; animation-delay: -3s; }
.dot-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff1e7; color: var(--accent-700); font-size: 1.15rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Stats band */
.stats { position: relative; z-index: 2; margin-top: -76px; }
.stats-grid {
  margin: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 24px; padding: 30px 12px;
  box-shadow: 0 30px 60px -30px rgba(11, 42, 74, .42), 0 0 0 1px rgba(11, 42, 74, .04);
}
.stats-grid > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 16px; }
.stats-grid > div + div { border-left: 1px solid var(--line); }
.stats-grid dd {
  order: -1; margin: 0; font-size: clamp(1.6rem, 2.7vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap;
  background: linear-gradient(90deg, var(--navy) 0%, var(--teal-700) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-grid dt { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* Sections */
.section { padding: 104px 0; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 32px; text-align: left; }
.eyebrow { color: var(--teal-700); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2, .assistant h2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); font-weight: 800; letter-spacing: -.025em; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; margin-top: 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c7dfee; }
.card h3 { font-size: 1.16rem; font-weight: 700; margin-top: 6px; }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.tile {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(140deg, var(--ice-100), var(--ice-200)); color: var(--teal-700); font-size: 1.6rem;
}
.tile.round { border-radius: 50%; width: 50px; height: 50px; font-size: 1.45rem; }
.tag {
  align-self: flex-start; justify-self: start; font-size: .8rem; font-weight: 700; color: var(--accent-text);
  background: #fff1e7; padding: 4px 11px; border-radius: 999px;
}

/* Assistant */
.assistant { background: linear-gradient(180deg, var(--ice-50) 0%, var(--ice-100) 100%); }
.assistant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.assistant-copy > p:not(.eyebrow):not(.hint) { color: var(--muted); font-size: 1.06rem; margin-top: 16px; max-width: 34em; }
.chips { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; text-align: left;
  padding: 11px 16px; border-radius: 14px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); cursor: pointer; font-size: .96rem; font-weight: 500;
  box-shadow: 0 6px 16px -12px rgba(11, 42, 74, .4);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.chip .ico { color: var(--teal-700); }
.chip:hover { border-color: var(--teal); transform: translateX(3px); box-shadow: 0 10px 24px -14px rgba(11, 130, 135, .55); }
.chip em { white-space: nowrap; font-style: normal; font-size: .74rem; font-weight: 700; color: var(--accent-text); background: #fff1e7; padding: 2px 8px; border-radius: 999px; }
.hint { margin-top: 18px; color: var(--muted); font-size: .9rem; }

.chat-preview {
  background: #fff; border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 80px -36px rgba(11, 42, 74, .5), 0 0 0 1px rgba(11, 42, 74, .05);
  max-width: 460px; justify-self: end; width: 100%;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: linear-gradient(120deg, var(--teal-700), var(--navy)); color: #fff; }
.chat-head img { border-radius: 10px; }
.chat-head strong { display: block; font-size: 1rem; }
.chat-head span { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: rgba(255, 255, 255, .75); }
.chat-head span i { width: 8px; height: 8px; border-radius: 50%; background: #22d3b4; box-shadow: 0 0 0 3px rgba(34, 211, 180, .25); }
.chat-body { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 24px; background: linear-gradient(180deg, #fff, var(--ice-50)); }
.bubble { max-width: 86%; padding: 12px 15px; border-radius: 18px; font-size: .95rem; line-height: 1.55; }
.bubble.me { align-self: flex-end; background: var(--teal-700); color: #fff; border-bottom-right-radius: 6px; }
.bubble.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.bot b { color: var(--navy); }
.source {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: .78rem; font-weight: 600; color: var(--teal-700); background: var(--ice-100); padding: 4px 10px; border-radius: 8px;
}
.typing { display: inline-flex; gap: 5px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* Why us */
.why-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.why-art { margin: 0; }
.why-art img { width: 100%; border-radius: 28px; box-shadow: var(--shadow); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 30px; }
.feature h3 { font-size: 1.06rem; font-weight: 700; margin: 14px 0 6px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* Call to action */
.cta-wrap { padding: 0 0 104px; }
.cta {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; justify-content: space-between;
  padding: 46px 52px; border-radius: 30px; color: #fff;
  background: radial-gradient(600px 300px at 90% 0%, rgba(127, 208, 245, .28), transparent 60%), linear-gradient(120deg, var(--teal-700) 0%, var(--navy) 70%);
}
.cta h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
.cta p { color: rgba(255, 255, 255, .8); margin-top: 8px; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-flake { position: absolute; right: -40px; top: -60px; width: 260px; height: 260px; color: #fff; opacity: .07; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

/* Footer */
.site-footer { background: var(--deep); color: rgba(255, 255, 255, .7); padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 36px; padding-bottom: 44px; }
.footer-brand p { margin-top: 16px; max-width: 26em; }
.site-footer .brand { color: #fff; }
.site-footer h3 { color: #fff; font-size: .98rem; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact li { display: flex; align-items: center; gap: 9px; }
.contact .ico { color: var(--mint); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 96px 30px 0; font-size: .85rem; color: rgba(255, 255, 255, .55);
}

/* Tablet */
@media (max-width: 1080px) {
  .nav, .hotline { display: none; }
  .menu { display: block; }
  .header-actions { margin-left: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { padding: 40px 0 112px; }
  .hero-grid, .assistant-grid, .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 620px; margin-inline: auto; width: 100%; }
  .chat-preview { justify-self: start; }
  .why-art { order: 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .stats-grid > div:nth-child(3) { border-left: 0; }
  .section { padding: 80px 0; }
  .cta { flex-direction: column; align-items: flex-start; padding: 38px 30px; }
}

/* Phone */
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .header-inner { height: 62px; gap: 12px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 1rem; white-space: nowrap; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .brand img { width: 34px; height: 34px; }
  .header-actions .btn-sm { padding: .55rem .85rem; font-size: .86rem; }
  .hero { padding: 32px 0 100px; }
  .lead { font-size: 1.02rem; }
  .hero-cta .btn { padding: .8rem 1.1rem; }
  .trust { gap: 8px; flex-direction: column; }
  .float-card { padding: 8px 11px 8px 9px; gap: 8px; border-radius: 13px; }
  .float-card div > strong { font-size: .86rem; }
  .card-temp strong { font-size: 1.02rem; }
  .float-card div > span { font-size: .68rem; }
  .gauge { width: 40px; height: 30px; }
  .dot-ico { width: 30px; height: 30px; border-radius: 10px; font-size: 1rem; }
  .card-temp { top: 0; left: -2px; }
  /* Bottom left on phones: the chat launcher sits at the bottom right. */
  .card-gps { right: auto; left: -2px; bottom: -6px; }
  .stats { margin-top: -64px; }
  .stats-grid { padding: 22px 6px; border-radius: 20px; }
  .stats-grid > div { padding: 2px 8px; }
  .stats-grid dd { font-size: 1.45rem; }
  .stats-grid dt { font-size: .8rem; line-height: 1.4; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 8px; padding: 20px; }
  .card .tile { grid-row: span 3; width: 46px; height: 46px; border-radius: 14px; font-size: 1.35rem; }
  .card h3 { margin-top: 0; font-size: 1.08rem; }
  .card p { font-size: .94rem; }
  .features { grid-template-columns: 1fr; gap: 22px; }
  .chip { font-size: .92rem; }
  .cta-wrap { padding-bottom: 72px; }
  .cta { padding: 32px 22px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  /* Room for the chat launcher at the bottom right. */
  .footer-bottom { flex-direction: column; padding: 20px 0 104px; }
}

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