/* ==================== TOKENS ==================== */
:root {
  --bg: #FAF9F5;
  --bg-alt: #F1EFE8;
  --ink: #16181A;
  --ink-soft: #62675E;
  --ink-faint: #9A9E93;
  --line: #E1DED4;
  --brand: #1E3328;
  --brand-dark: #0F1D15;
  --brand-tint: #E9EDE7;
  --white: #FFFFFF;

  --ph-1: #EDEAE1; /* concrete */
  --ph-2: #E3E6DC; /* sage */
  --ph-3: #D8DED2; /* deeper sage */
  --ph-4: #26392C; /* brand dark for contrast image */

  --shopee: #EE4D2D;
  --tiktok: #111111;

  --container: 1240px;
  --radius: 2px;

  --ease: cubic-bezier(.16,.8,.28,1);
}

/* ==================== RESET ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
table { border-collapse: collapse; width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ==================== TYPOGRAPHY HELPERS ==================== */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title.center { text-align: center; }

.section-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.6;
}
.section-sub.center { margin: 0 auto; text-align: center; }

/* ==================== SCROLL REVEAL ==================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==================== BUTTONS ==================== */
.btn-primary, .btn-ghost, .btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease),
              transform .25s var(--ease), box-shadow .25s var(--ease);
  text-align: center;
}
.btn-primary, .btn-ghost, .btn-outline-light, .btn-buy, .btn-buy-sm {
  will-change: transform;
}
.btn-primary:hover, .btn-ghost:hover, .btn-outline-light:hover, .btn-buy:hover, .btn-buy-sm:hover {
  transform: translateY(-2px);
}
.btn-primary:active, .btn-ghost:active, .btn-outline-light:active, .btn-buy:active, .btn-buy-sm:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 8px 20px rgba(15,29,21,.25); }
.btn-primary.full { width: 100%; padding: 15px; }

.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); box-shadow: 0 8px 20px rgba(0,0,0,.15); }

.btn-outline-light {
  border: 1px solid rgba(255,255,255,.5);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

.btn-buy {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--brand);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-buy:hover { background: var(--brand-dark); box-shadow: 0 8px 20px rgba(15,29,21,.25); }

.btn-buy-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .2s, background .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-buy-sm:hover { border-color: var(--ink); background: var(--bg-alt); box-shadow: 0 6px 14px rgba(0,0,0,.08); }

.mp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.mp-shopee { background: var(--shopee); }
.mp-tiktok { background: var(--tiktok); }

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,249,245,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.buy-menu { position: relative; }
.buy-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 220px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.buy-menu.open .buy-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.buy-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius);
}
.buy-dropdown-item:hover { background: var(--bg-alt); }

.menu-toggle { display: none; color: var(--ink); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 32px 24px;
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-buy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.mobile-buy .btn-outline-light { border-color: var(--ink); color: var(--ink); }

.site-header.nav-open .mobile-nav { display: flex; }

/* ==================== HERO ==================== */
.hero { padding: 96px 0 56px; }
.hero-inner { max-width: 760px; }
.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==================== PLACEHOLDER PHOTO BLOCKS ==================== */
.ph {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--ph-1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 2px, transparent 2px 14px);
}
.ph-1 { background: var(--ph-1); color: #8B8577; }
.ph-2 { background: var(--ph-2); color: #6C7A63; }
.ph-3 { background: var(--ph-3); color: #4E5C46; }
.ph-4 { background: var(--ph-4); color: #A9BDAC; }
.ph-icon svg { width: 34%; height: 34%; }
.ph-icon.lg svg { width: 22%; height: 22%; }
.ph.tall { aspect-ratio: 3/4; }
.ph.fill { aspect-ratio: auto; height: 100%; }
.ph.main { aspect-ratio: 16/10; }

/* ==================== FEATURED STRIP ==================== */
.strip { padding: 8px 0 88px; }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.strip-card { display: block; }
.strip-card .ph { margin-bottom: 14px; transition: opacity .25s; }
.strip-card:hover .ph { opacity: .85; }
.strip-name { font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.strip-tag { font-size: 13px; color: var(--ink-soft); }

/* ==================== STATEMENT ==================== */
.statement { padding: 40px 0 96px; text-align: center; }
.statement-title {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 780px;
  margin: 0 auto 56px;
}
.statement-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

/* ==================== FEATURE HERO (Ứng dụng) ==================== */
.feature-hero { padding: 40px 0 100px; }
.feature-hero > .container:first-child { margin-bottom: 48px; }
.feature-hero-media { margin-bottom: 56px; }

.applications-table th, .applications-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.applications-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink);
}
.applications-table td:first-child { font-weight: 600; width: 32%; }
.applications-table td:last-child, .applications-table th:last-child { color: var(--ink-soft); }

/* ==================== SPLIT FEATURE ==================== */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 420px;
}
.split-feature.reverse { direction: rtl; }
.split-feature.reverse > * { direction: ltr; }
.split-media { height: 100%; min-height: 420px; }
.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
}
.split-text h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 18px;
}
.split-text p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.7; max-width: 440px; }

/* ==================== PRODUCTS ==================== */
.products { padding: 40px 0 96px; }
.products > .container:first-child { margin-bottom: 56px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}
.product-card { display: flex; flex-direction: column; }
.product-card .ph { margin-bottom: 20px; }
.product-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.product-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 16px; flex-grow: 1; }
.product-tags { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: 100px;
}
.product-buy { display: flex; gap: 10px; flex-wrap: wrap; }

.compare { padding-top: 8px; }
.compare-table { max-width: 820px; margin: 0 auto; }
.compare-table th, .compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  text-align: left;
}
.compare-table th { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.compare-table th:first-child, .compare-table td:first-child { color: var(--ink-soft); font-weight: 500; }
.compare-table thead th { border-bottom: 1px solid var(--ink); }

/* ==================== STORY / VỀ CHÚNG TÔI ==================== */
.story { padding: 40px 0 100px; background: var(--bg-alt); }
.story .container { padding-top: 88px; padding-bottom: 88px; max-width: 900px; }
.story-text { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 18px; max-width: 720px; }
.story-text strong { color: var(--ink); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.value-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.value-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

/* ==================== TRUST STRIP ==================== */
.trust { padding: 72px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.trust-item { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.trust-item svg { width: 26px; height: 26px; color: var(--brand); }
.trust-item p { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); max-width: 180px; line-height: 1.5; }

/* ==================== CTA CONTACT ==================== */
.cta-contact { padding: 96px 0; }
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  background: var(--brand);
  color: var(--white);
  padding: 64px;
}
.cta-text .eyebrow { color: rgba(255,255,255,.65); }
.cta-text .section-title { color: var(--white); }
.cta-text .section-sub { color: rgba(255,255,255,.75); max-width: 440px; }

.cta-form { display: flex; flex-direction: column; gap: 12px; }
.cta-form input, .cta-form textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  border-radius: var(--radius);
  resize: none;
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: rgba(255,255,255,.5); }
.cta-form input:focus, .cta-form textarea:focus { outline: none; border-color: rgba(255,255,255,.6); }
.cta-form .btn-primary { background: var(--white); color: var(--brand); margin-top: 6px; }
.cta-form .btn-primary:hover { background: rgba(255,255,255,.85); }
.form-note { font-size: 13px; color: rgba(255,255,255,.8); min-height: 18px; }

/* ==================== FOOTER ==================== */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.85); }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 80px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-logo { font-size: 20px; font-weight: 800; color: var(--white); letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 24px; max-width: 220px; line-height: 1.6; }
.footer-marketplace { display: flex; gap: 10px; }
.footer-marketplace .mp-badge { width: 32px; height: 32px; font-size: 13px; }

.footer-heading { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.footer-col a, .footer-address { display: block; font-size: 14px; color: rgba(255,255,255,.8); margin-bottom: 12px; }
.footer-col a:hover { color: var(--white); }

.newsletter-form { display: flex; border: 1px solid rgba(255,255,255,.25); }
.newsletter-form input { flex: 1; background: transparent; border: none; padding: 12px 14px; color: var(--white); font-size: 13.5px; font-family: inherit; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form button { padding: 0 14px; color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .split-text { padding: 56px 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-newsletter { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .header-actions .btn-buy span { display: none; }
  .menu-toggle { display: block; }
  .buy-menu { display: none; }

  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .statement-images { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }

  .split-feature { grid-template-columns: 1fr; }
  .split-media { min-height: 300px; }
  .split-text { padding: 40px 24px; }

  .cta-inner { grid-template-columns: 1fr; padding: 40px 28px; gap: 40px; }

  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 12px 10px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero { padding: 56px 0 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; }

  .strip-grid { grid-template-columns: 1fr; }
  .statement-images { grid-template-columns: 1fr; }
  .statement { padding: 24px 0 64px; }

  .values-grid { grid-template-columns: 1fr; gap: 28px; }
  .trust-grid { grid-template-columns: 1fr; gap: 28px; }

  .footer-top { grid-template-columns: 1fr; padding: 56px 0 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .story .container { padding-top: 56px; padding-bottom: 56px; }
}
