:root {
  --green-950: #0a311d;
  --green-900: #0d4225;
  --green-800: #145b31;
  --green-700: #18723a;
  --green-600: #249348;
  --green-300: #a3d9a5;
  --green-100: #e8f5e9;
  --lime: #91d32e;
  --orange: #ffa726;
  --paper: #f4f4ef;
  --surface: #ffffff;
  --ink: #23332f;
  --muted: #68766f;
  --line: #dbe2dc;
  --shadow: 0 18px 50px rgba(10, 49, 29, .12);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 100; padding: 10px 16px; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 20px 0;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 20px; font-weight: 800; }
.brand img { border-radius: 50%; }
nav { display: flex; gap: 30px; margin-left: auto; }
nav a { color: #40504b; font-size: 14px; font-weight: 600; text-decoration: none; }
nav a:hover { color: var(--green-700); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.language-link { display: grid; min-width: 42px; min-height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--green-800); font-size: 12px; font-weight: 800; text-decoration: none; }
.language-link:hover { background: var(--green-100); }

.button {
  min-height: 48px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 20px; }
.button-small { min-height: 42px; padding-inline: 18px; font-size: 13px; }
.button-outline { border-color: var(--green-800); color: var(--green-800); }
.button-outline:hover { background: var(--green-100); }
.button-primary { color: white; background: var(--green-800); box-shadow: 0 10px 30px rgba(20, 91, 49, .25); }
.button-primary:hover { background: var(--green-900); }
.text-link { font-size: 14px; font-weight: 800; text-underline-offset: 5px; }

.hero {
  position: relative;
  min-height: 780px;
  padding: 158px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 20%, rgba(163, 217, 165, .34), transparent 27%),
    linear-gradient(120deg, #fafaf6 0 58%, #eaf3e8 58% 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -180px;
  width: 680px;
  height: 410px;
  border: 1px solid rgba(20, 91, 49, .15);
  border-radius: 50%;
  transform: rotate(-12deg);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; }
.hero-copy { max-width: 650px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--green-700); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: var(--lime); }
.eyebrow.light { color: #cce9d1; }
.hero h1, .section h2 { margin: 0; letter-spacing: -.045em; line-height: 1.08; }
.hero h1 { max-width: 740px; font-size: clamp(48px, 6vw, 78px); font-weight: 600; }
.hero h1 strong { color: var(--green-700); font-weight: 800; }
.hero-lead { max-width: 630px; margin: 30px 0 0; color: #52615c; font-size: 18px; }
.hero-lead, .section-heading > p { overflow-wrap: anywhere; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0; margin: 36px 0 0; list-style: none; color: #52615c; font-size: 13px; font-weight: 600; }
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list svg { width: 18px; height: 18px; padding: 3px; color: white; background: var(--green-600); border-radius: 50%; }

.hero-visual { position: relative; min-height: 520px; }
.sun-mark { position: absolute; top: 5%; right: 0; width: 340px; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, var(--green-300), #d7efd0); }
.field-lines { position: absolute; right: -120px; bottom: 0; width: 610px; height: 280px; border: 2px solid rgba(20, 91, 49, .18); border-radius: 50%; transform: rotate(-14deg); }
.field-lines::before, .field-lines::after { content: ""; position: absolute; inset: 38px -8px; border: inherit; border-radius: inherit; }
.field-lines::after { inset: 85px -22px; }
.phone {
  position: absolute;
  overflow: hidden;
  padding: 8px;
  border: 2px solid #163b29;
  border-radius: 30px;
  background: #1e3029;
  box-shadow: var(--shadow);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px; }
.phone-speaker { position: absolute; top: 15px; left: 50%; z-index: 2; width: 56px; height: 5px; border-radius: 5px; background: rgba(14, 28, 22, .8); transform: translateX(-50%); }
.phone-main { top: 0; left: 50%; width: 258px; height: 520px; transform: translateX(-50%); }
.floating-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 11px; padding: 12px 16px; border: 1px solid rgba(20, 91, 49, .08); border-radius: 12px; background: rgba(255, 255, 255, .95); box-shadow: 0 12px 32px rgba(10, 49, 29, .12); }
.floating-card small, .floating-card b { display: block; white-space: nowrap; }
.floating-card small { color: #79857f; font-size: 10px; }
.floating-card b { font-size: 12px; }
.card-stock { left: -12px; top: 22%; }
.card-climate { right: -4px; bottom: 22%; }
.mini-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--green-700); background: var(--green-100); border-radius: 9px; }
.mini-icon svg { width: 19px; }
.status-dot { width: 10px; height: 10px; background: #48ad52; border: 3px solid #d9f3db; border-radius: 50%; box-sizing: content-box; }

.proof-strip { position: relative; overflow: hidden; color: white; background: var(--green-900); }
.proof-strip::after { content: ""; position: absolute; top: -120px; right: 4%; width: 300px; height: 300px; border: 1px solid rgba(145, 211, 46, .14); border-radius: 50%; }
.proof-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-grid > div { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 146px; padding: 24px 34px; border-right: 1px solid rgba(255, 255, 255, .13); }
.proof-grid > div:last-child { border: 0; }
.proof-grid > div > span:last-child { display: grid; gap: 3px; }
.proof-grid strong { color: white; font-size: 15px; }
.proof-grid small { max-width: 220px; color: #a8c8b3; font-size: 12px; line-height: 1.55; }
.proof-icon { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; color: var(--lime); border: 1px solid rgba(145, 211, 46, .32); border-radius: 14px; background: rgba(145, 211, 46, .08); }
.proof-icon svg { width: 24px; height: 24px; }

.section { padding: 112px 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; margin-bottom: 58px; }
.section h2 { font-size: clamp(38px, 5vw, 60px); }
.section h2 em { color: var(--green-700); font-style: normal; }
.section-heading > p { max-width: 470px; margin: 0 0 4px; color: var(--muted); font-size: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 340px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.feature-card h3 { margin: 40px 0 12px; font-size: 22px; line-height: 1.3; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }
.feature-wide { display: grid; grid-column: span 2; grid-template-columns: .9fr 1.1fr; align-items: stretch; gap: 0; padding: 0; background: #eef5ec; }
.feature-wide h3 { margin-top: 28px; }
.feature-photo-wrap { position: relative; min-height: 390px; padding: 34px 34px 0; overflow: hidden; background: linear-gradient(160deg, #cfe9c9, #a3d9a5); }
.feature-photo { position: absolute; inset: 34px 34px 0; width: calc(100% - 68px); height: calc(100% - 34px); object-fit: cover; object-position: top; border-radius: 18px 18px 0 0; box-shadow: 0 -6px 30px rgba(10, 49, 29, .16); }
.feature-content { position: relative; align-self: stretch; padding: 30px; }
.feature-tag { position: absolute; right: 30px; bottom: 28px; padding: 7px 11px; color: var(--green-700); border-radius: 999px; background: #d9edd7; font-size: 10px; font-weight: 800; }
.feature-card-top { display: flex; align-items: center; justify-content: space-between; }
.feature-visual-card { display: flex; flex-direction: column; padding-bottom: 0; }
.feature-screen-crop { width: 205px; height: 220px; margin: 26px 0 0 auto; object-fit: cover; object-position: top; border: 5px solid #eff2ef; border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(10,49,29,.12); transform: rotate(2deg) translateY(6px); }
.mini-flow { display: flex; align-items: center; gap: 10px; margin-top: 36px; }
.mini-flow span { display: flex; align-items: center; gap: 7px; padding: 9px 10px; color: white; border-radius: 9px; background: rgba(255,255,255,.12); font-size: 11px; font-weight: 600; }
.mini-flow svg { width: 16px; }
.mini-flow b { color: #c9e8ce; font-size: 13px; }
.climate-reading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 16px; margin-top: 28px; padding: 17px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.06); }
.climate-reading span { color: white; font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 600; line-height: 1; }
.climate-reading small { color: #aebfb5; font-size: 11px; }
.climate-reading b { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 6px 10px; color: #bdeb79; border-radius: 999px; background: rgba(145,211,46,.12); font-size: 10px; }
.spark-bars { display: flex; align-items: end; gap: 7px; height: 70px; margin-top: 24px; padding: 12px 14px; border-radius: 12px; background: #f4f7f2; }
.spark-bars i { flex: 1; height: 30%; border-radius: 4px 4px 1px 1px; background: var(--green-300); }
.spark-bars i:nth-child(2) { height: 44%; }.spark-bars i:nth-child(3) { height: 38%; }.spark-bars i:nth-child(4) { height: 62%; }.spark-bars i:nth-child(5) { height: 70%; }.spark-bars i:nth-child(6) { height: 88%; background: var(--green-600); }
.feature-icon { display: grid; width: 52px; height: 52px; place-items: center; color: var(--green-700); background: var(--green-100); border-radius: 14px; }
.feature-icon svg { width: 27px; height: 27px; }
.feature-green { color: white; background: var(--green-700); border-color: var(--green-700); }
.feature-green p { color: #d7ecdd; }
.feature-green .feature-icon { color: white; background: rgba(255, 255, 255, .12); }
.feature-dark { color: white; background: #23332f; border-color: #23332f; }
.feature-dark p { color: #c9d2ce; }
.feature-dark .feature-icon { color: var(--lime); background: rgba(255, 255, 255, .08); }

.product-showcase { overflow: hidden; color: white; background: var(--green-950); }
.showcase-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 80px; }
.showcase-copy { padding-block: 20px; }
.showcase-copy > p:not(.eyebrow) { max-width: 520px; color: #bfd0c6; }
.showcase-copy h2 em { color: var(--lime); }
.detail-list { padding: 0; margin: 40px 0 0; list-style: none; }
.detail-list li { display: grid; grid-template-columns: 130px 1fr; gap: 22px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .13); }
.detail-list b { color: white; font-size: 13px; }
.detail-list span { color: #aebfb5; font-size: 13px; }
.phone-stage { position: relative; min-height: 670px; }
.phone-stage::before { content: ""; position: absolute; inset: 60px 8% 0; border-radius: 50% 50% 0 0; background: linear-gradient(180deg, rgba(145, 211, 46, .16), transparent 85%); }
.phone-front { top: 30px; right: 5%; z-index: 3; width: 302px; height: 635px; }
.phone-back { top: 92px; left: 7%; width: 265px; height: 555px; opacity: .76; transform: rotate(-7deg); }

.story { background: #fafaf6; }
.story-grid { display: grid; grid-template-columns: .65fr 1.35fr; align-items: center; gap: 90px; }
.story-mark { display: grid; min-height: 380px; place-items: center; border-radius: 50% 50% 8px 50%; background: #e5efdf; }
.story-mark img { filter: drop-shadow(0 18px 24px rgba(10, 49, 29, .15)); }
.story-copy { max-width: 680px; }
.story-copy > p:not(.eyebrow) { color: var(--muted); font-size: 16px; }

.download { padding-top: 0; background: #fafaf6; }
.download-card { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 62px 68px; color: white; border-radius: 24px; background: var(--green-700); box-shadow: 0 18px 50px rgba(20, 91, 49, .2); }
.download-card h2 { font-size: clamp(34px, 4vw, 52px); }
.download-card > div > p:last-child { margin-bottom: 0; color: #d3ead8; }
.download-actions { display: flex; align-items: center; gap: 28px; flex: 0 0 auto; }
.store-buttons { display: flex; flex-direction: column; gap: 12px; width: 252px; }
.qr-block { display: none; margin: 0; padding: 14px; width: 172px; text-align: center; color: var(--ink); border-radius: 16px; background: white; }
.qr-block img { width: 132px; height: 132px; margin: 0 auto; image-rendering: pixelated; }
.qr-block figcaption { margin-top: 8px; font-size: 11px; line-height: 1.4; color: var(--muted); }
@media (min-width: 961px) and (hover: hover) and (pointer: fine) { .qr-block { display: block; } }
.store-button { position: relative; min-height: 70px; display: flex; align-items: center; gap: 15px; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, .34); border-radius: 12px; color: white; background: #07140d; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.store-button::after { content: "↗"; position: absolute; right: 16px; top: 12px; color: #819087; font-size: 11px; }
.store-button:hover { background: #020805; transform: translateY(-2px); }
.store-button svg { flex: 0 0 32px; width: 32px; height: 32px; fill: currentColor; stroke-width: 1.2; }
.store-button.google-play svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.store-button small, .store-button b { display: block; line-height: 1.1; }
.store-button small { margin-bottom: 5px; color: #c5cdc8; font-size: 9px; letter-spacing: .06em; }
.store-button b { font-size: 17px; }

footer { padding: 56px 0 24px; color: #b8c3bd; background: #17231f; }
.footer-grid { display: grid; grid-template-columns: .7fr 1fr .8fr; align-items: center; gap: 40px; }
.footer-brand { color: white; }
.footer-grid p { margin: 0; font-size: 13px; }
.footer-grid p span { color: #7f9187; }
.footer-contact { display: grid; gap: 4px; justify-self: end; }
.footer-contact small { display: block; color: #8a9a91; font-size: 11px; font-weight: 600; }
.footer-contact a { color: white; font-size: 14px; text-underline-offset: 5px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); color: #8a9a91; font-size: 12px; }
.footer-bottom a { color: inherit; text-underline-offset: 4px; }
.footer-bottom a:hover { color: white; }


/* Liên hệ nhanh (Zalo / gọi) — chỉ hiện khi đã cấu hình */
.quick-contact { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.quick-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; color: white; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 26px rgba(10, 49, 29, .28); }
.quick-contact svg { width: 22px; height: 22px; }
.quick-contact-zalo { background: #0068ff; }
.quick-contact-call { background: var(--green-800); }

/* Trang chính sách */
.legal { padding: 150px 0 96px; background: #fafaf6; }
.legal-body { max-width: 720px; }
.legal h1 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 48px); line-height: 1.15; letter-spacing: -.03em; }
.legal h2 { margin: 36px 0 10px; font-size: 20px; }
.legal p { color: #44534e; }
.legal-updated { margin: 0 0 28px; color: var(--muted) !important; font-size: 14px; }

/* Trang chuyển hướng tải app */
.app-redirect { background: #fafaf6; }
.app-redirect-body { display: grid; justify-items: center; gap: 12px; max-width: 420px; padding: 80px 0; text-align: center; }
.app-redirect-body h1 { margin: 8px 0 0; }
.app-redirect-body .store-buttons { width: 100%; max-width: 260px; }

@media (max-width: 960px) {
  nav { display: none; }
  .hero { padding-top: 135px; }
  .hero-grid, .showcase-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-visual { width: min(520px, 100%); margin-inline: auto; }
  .section-heading, .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: span 2; }
  .showcase-copy { max-width: 680px; }
  .phone-stage { width: min(620px, 100%); margin-inline: auto; }
  .story-mark { min-height: 280px; }
  .download-card { padding: 50px 42px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--container)); }
  .site-header { padding-top: 14px; }
  .brand { font-size: 17px; }
  .brand img { width: 40px; height: 40px; }
  .button-small { min-height: 40px; padding-inline: 13px; font-size: 11px; }
  .hero { min-height: auto; padding: 112px 0 70px; background: linear-gradient(155deg, #fafaf6 0 64%, #eaf3e8 64%); }
  .hero-grid { gap: 42px; }
  .hero h1 { font-size: 43px; }
  .hero-lead { font-size: 15px; line-height: 1.75; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-visual { min-height: 470px; }
  .sun-mark { right: 3%; width: 285px; }
  .phone-main { width: 226px; height: 455px; }
  .card-stock { left: -5px; top: 24%; }
  .card-climate { right: -5px; bottom: 15%; }
  .floating-card { padding: 10px 12px; }
  .floating-card b { font-size: 11px; }
  .proof-grid { grid-template-columns: 1fr; padding-block: 8px; }
  .proof-grid > div { min-height: 90px; justify-content: flex-start; padding-inline: 24px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .section { padding: 78px 0; }
  .section h2 { font-size: 39px; }
  .section-heading { margin-bottom: 36px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-wide { min-height: 300px; grid-column: auto; }
  .feature-wide { display: grid; grid-template-columns: 1fr; }
  .feature-photo-wrap { min-height: 300px; padding: 26px 26px 0; }
  .feature-photo { inset: 26px 26px 0; width: calc(100% - 52px); height: calc(100% - 26px); }
  .feature-content { min-height: 290px; }
  .feature-wide h3 { margin-top: 42px; }
  .feature-screen-crop { width: 165px; }
  .showcase-grid { gap: 38px; }
  .phone-stage { min-height: 540px; }
  .phone-front { right: 0; width: 245px; height: 510px; }
  .phone-back { top: 75px; left: 0; width: 210px; height: 440px; }
  .detail-list li { grid-template-columns: 105px 1fr; }
  .story-grid { gap: 42px; }
  .story-mark { min-height: 240px; }
  .story-mark img { width: 140px; }
  .download-card { align-items: flex-start; flex-direction: column; padding: 38px 26px; }
  .download-actions { width: 100%; }
  .store-buttons { width: 100%; }
  .legal { padding-top: 120px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { justify-self: start; }
}

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