@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,600&display=swap');

/* ══════════════════════════════════════════════════
   DESIGN TOKENS — prefix -- để không xung đột với admin
══════════════════════════════════════════════════ */
:root {
  /* Primary palette — sky blue */
  --sky:        #5BB8D4;
  --sky-dark:   #3A9DC2;
  --sky-deeper: #2278A0;
  --sky-light:  #E3F5FC;
  --sky-glow:   rgba(91, 184, 212, 0.28);

  /* Neutrals */
  --cream:      #F5FBFF;
  --cream-2:    #EBF6FA;
  --white:      #FFFFFF;
  --border:     #D8EEF7;

  /* Text */
  --ink:        #1A3A4A;
  --ink-mid:    #3E6980;
  --ink-light:  #7BAFC8;

  /* Shadow */
  --shadow-sm:  0 2px 10px rgba(91,184,212,0.10);
  --shadow-md:  0 8px 32px rgba(91,184,212,0.15);
  --shadow-lg:  0 24px 64px rgba(91,184,212,0.18);

  /* Radius */
  --r-sm: 16px;
  --r-md: 28px;
  --r-lg: 48px;

  --font: 'Nunito', 'Segoe UI', sans-serif;
}

/* ══════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
.lp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
#landing-root { min-height: 100vh; }

.lp-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ══════════════════════════════════════════════════
   REVEAL ANIMATION
══════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
#landing-nav {
  position: fixed; top: 0; width: 100%; z-index: 999;
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s;
}
#landing-nav.scrolled {
  background: rgba(245, 251, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.lp-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.lp-logo {
  font-size: 1.9rem; font-weight: 900; color: var(--ink);
  display: flex; align-items: center; gap: 4px; letter-spacing: -0.5px;
  text-decoration: none;
}
.lp-logo span { color: var(--sky); }
.lp-app-ava {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  box-shadow: 0 4px 12px rgba(91,184,212,0.3);
}
.lp-nav-links { display: flex; align-items: center; gap: 36px; }
.lp-nav-links a {
  font-size: 1rem; font-weight: 700; color: var(--ink-mid);
  transition: color 0.2s;
  text-decoration: none;
}
.lp-nav-links a:hover { color: var(--sky); }
.lp-btn-nav {
  background: var(--sky); color: #fff !important;
  padding: 10px 24px; border-radius: 99px; font-weight: 800;
  box-shadow: 0 4px 16px var(--sky-glow);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.lp-btn-nav:hover { background: var(--sky-dark); transform: translateY(-2px); }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
#lp-hero {
  padding-top: 130px; padding-bottom: 100px;
  background: linear-gradient(150deg, #F5FBFF 55%, #D9F1FA 100%);
  overflow: hidden; position: relative;
}
.lp-hero-inner {
  display: flex; align-items: center; gap: 64px;
}
.lp-hero-text { flex: 1.1; }
.lp-badge {
  display: inline-flex; align-items: center;
  padding: 8px 18px; background: var(--sky-light);
  color: var(--sky-deeper); border-radius: 99px;
  font-size: 0.9rem; font-weight: 800; margin-bottom: 28px;
  border: 1.5px solid rgba(91,184,212,0.35);
}
.lp-hero-h1 {
  font-size: 5.5rem; font-weight: 900; line-height: 1;
  color: var(--ink); letter-spacing: -3px; margin-bottom: 20px;
}
.lp-hero-tagline {
  font-size: 1.9rem; font-weight: 800; line-height: 1.35;
  color: var(--ink); margin-bottom: 24px;
}
.lp-sky { color: var(--sky); }
.lp-hero-sub {
  font-size: 1.1rem; color: var(--ink-mid);
  line-height: 1.7; font-weight: 600; margin-bottom: 40px;
  max-width: 520px;
}
/* Store buttons */
.lp-stores { display: flex; gap: 16px; flex-wrap: wrap; }
.lp-store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 14px;
  transition: transform 0.2s, background 0.2s;
  min-width: 160px;
}
.lp-store-btn:hover { background: var(--sky-deeper); transform: translateY(-3px); }
.lp-store-btn svg { flex-shrink: 0; }
.lp-store-btn div { display: flex; flex-direction: column; }
.lp-store-label { font-size: 0.7rem; font-weight: 600; opacity: 0.75; line-height: 1; }
.lp-store-name { font-size: 1.05rem; font-weight: 800; line-height: 1.4; }

/* Right — Phone Mockup */
.lp-hero-visual {
  flex: 1; position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 620px;
}
.lp-phone-wrap { position: relative; z-index: 2; display: flex; justify-content: center; }

/* iPhone 16 Pro Max shell - Thinner Bezel */
.lp-phone {
  position: relative; width: 290px;
  background: linear-gradient(160deg, #2A2A2A 0%, #1A1A1A 100%);
  border-radius: 46px; padding: 6px; /* Giảm padding từ 12px xuống 6px để viền mỏng hơn */
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12) inset,
    0 0 0 1.5px #3A3A3A,
    0 50px 100px rgba(0,0,0,0.35),
    0 0 0 12px #111111;
  z-index: 2;
}

/* Dynamic Island — thay thế notch trên iPhone 14 Pro+ */
.lp-dynamic-island {
  position: absolute; top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 126px; height: 36px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset;
}

/* Các nút vật lý bên hông */
.lp-btn-power {
  position: absolute; right: -14px; top: 140px;
  width: 4px; height: 80px;
  background: #3A3A3A; border-radius: 2px 2px 2px 2px;
  box-shadow: 1px 0 2px rgba(0,0,0,0.5);
}
.lp-btn-vol-up {
  position: absolute; left: -14px; top: 120px;
  width: 4px; height: 56px;
  background: #3A3A3A; border-radius: 2px;
}
.lp-btn-vol-down {
  position: absolute; left: -14px; top: 188px;
  width: 4px; height: 56px;
  background: #3A3A3A; border-radius: 2px;
}
.lp-btn-silent {
  position: absolute; left: -14px; top: 76px;
  width: 4px; height: 32px;
  background: #3A3A3A; border-radius: 2px;
}

.lp-phone-screen {
  border-radius: 42px; overflow: hidden;
  height: 600px; background: #FFFDF5;
  display: flex; justify-content: center; align-items: center;
}
.lp-phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover; /* Sẽ đổi thành 100% kích thước hoặc cover vừa vặn */
  object-position: center;
}
.lp-phone-home-bar {
  width: 120px; height: 5px;
  background: rgba(255,255,255,0.30);
  border-radius: 99px; margin: 10px auto 0;
}
.lp-blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); z-index: 1; pointer-events: none;
}
.lp-blob-1 { width: 320px; height: 320px; background: rgba(91,184,212,0.2); top: -40px; right: -60px; }
.lp-blob-2 { width: 200px; height: 200px; background: rgba(91,184,212,0.12); bottom: 0; left: -40px; }
.lp-pets-float {
  position: absolute; bottom: -30px; right: -110px;
  width: 480px; z-index: 1; pointer-events: none;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
}

/* ══════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════ */
#lp-stats { background: var(--sky); padding: 40px 0; }
.lp-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); text-align: center; }
.lp-stat {
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px 20px; border-right: 1px solid rgba(255,255,255,0.3);
}
.lp-stat:last-child { border-right: none; }
.lp-stat-num { font-size: 2.4rem; font-weight: 900; color: #fff; line-height: 1; }
.lp-stat-label { font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.85); }

/* ══════════════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════════════ */
.lp-section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.lp-section-tag {
  display: inline-block; padding: 6px 18px;
  background: var(--sky-light); color: var(--sky-deeper);
  border-radius: 99px; font-weight: 800; font-size: 0.85rem;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px;
}
.lp-section-header h2 {
  font-size: 2.8rem; font-weight: 900; color: var(--ink);
  line-height: 1.2; letter-spacing: -1px; margin-bottom: 16px;
}
.lp-section-header p {
  font-size: 1.1rem; color: var(--ink-light); font-weight: 600; line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════ */
#lp-features { padding: 100px 0; background: var(--cream); }
.lp-feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.lp-feat-card {
  background: var(--white); border-radius: var(--r-md);
  padding: 40px 28px; text-align: center;
  border: 2px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.lp-feat-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg); border-color: var(--sky);
}
.lp-feat-icon-wrap {
  width: 110px; height: 110px;
  border-radius: 50%;       /* Bo tròn hoàn toàn */
  background: var(--sky-light);
  margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s;
  box-shadow: 0 8px 24px rgba(91,184,212,0.20);
}
.lp-feat-card:hover .lp-feat-icon-wrap {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 16px 40px rgba(91,184,212,0.30);
}
.lp-feat-icon-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Tròn 100% khớp với viền ngoài */
}
.lp-feat-card h3 {
  font-size: 1.2rem; font-weight: 800; color: var(--ink);
  margin-bottom: 12px; line-height: 1.35;
}
.lp-feat-card p { font-size: 0.95rem; color: var(--ink-mid); line-height: 1.65; font-weight: 600; }

/* ══════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════ */
#lp-steps { padding: 100px 0; background: linear-gradient(180deg, #EAF7FD 0%, var(--cream) 100%); }
.lp-steps-grid {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; position: relative;
}
.lp-step { flex: 1; text-align: center; padding: 0 24px; position: relative; max-width: 260px; }
.lp-step-num {
  font-size: 3.5rem; font-weight: 900; line-height: 1;
  margin-bottom: -8px; letter-spacing: -2px;
  color: transparent; -webkit-text-stroke: 2px var(--border);
}
.lp-step-emoji { font-size: 3rem; margin-bottom: 16px; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); }
.lp-step h4 { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.lp-step p { font-size: 0.9rem; color: var(--ink-mid); font-weight: 600; line-height: 1.6; }
.lp-step-arrow {
  position: absolute; top: 55px; right: -14px;
  font-size: 1.8rem; color: var(--sky); opacity: 0.6; font-weight: 900;
}

/* ══════════════════════════════════════════════════
   REVIEWS — Horizontal Carousel
══════════════════════════════════════════════════ */
#lp-reviews { padding: 100px 0; background: var(--cream); }

/* Marquee-style infinite scroll track */
.lp-reviews-track-wrap { overflow: hidden; position: relative; padding: 20px 0; margin: -20px 0; }
.lp-reviews-track-wrap::before,
.lp-reviews-track-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.lp-reviews-track-wrap::before { left: 0; background: linear-gradient(to right, var(--cream), transparent); }
.lp-reviews-track-wrap::after  { right: 0; background: linear-gradient(to left, var(--cream), transparent); }

.lp-reviews-track {
  display: flex; gap: 28px;
  width: max-content;
  animation: lp-marquee 30s linear infinite;
}
.lp-reviews-track:hover { animation-play-state: paused; }

@keyframes lp-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.lp-review-card {
  background: var(--white); border-radius: var(--r-md);
  padding: 36px 32px; border: 2px solid var(--border);
  box-shadow: var(--shadow-sm); width: 360px; flex-shrink: 0;
  display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.lp-review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--sky); }
.lp-stars { color: #F59E0B; font-size: 1.3rem; letter-spacing: 2px; margin-bottom: 20px; }
.lp-review-text {
  font-size: 1rem; color: var(--ink-mid); font-style: italic;
  font-weight: 600; line-height: 1.7; margin-bottom: 28px; flex: 1;
}
.lp-reviewer { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.lp-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--sky-light); color: var(--sky-deeper);
  font-weight: 900; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lp-reviewer-name { font-weight: 800; font-size: 1rem; color: var(--ink); }
.lp-reviewer-role { font-size: 0.85rem; color: var(--ink-light); font-weight: 600; margin-top: 2px; }

/* ══════════════════════════════════════════════════
   CTA — FIXED LAYOUT
══════════════════════════════════════════════════ */
#lp-cta { padding: 100px 0; background: var(--cream); }
.lp-cta-box {
  background: linear-gradient(135deg, #D9F1FA 0%, #B8E4F5 50%, #A0D8EF 100%);
  border-radius: var(--r-lg); padding: 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  position: relative; overflow: hidden;
  box-shadow: 0 24px 64px rgba(91,184,212,0.18);
  border: 2px solid rgba(91,184,212,0.25);
}
.lp-cta-text { position: relative; z-index: 2; }
.lp-cta-text h2 {
  font-size: 2.8rem; font-weight: 900; line-height: 1.25;
  color: var(--ink); margin-bottom: 16px; letter-spacing: -1px;
  /* Prevent overflow */
  word-break: keep-all; overflow-wrap: break-word;
}
.lp-cta-text h2 span { color: var(--sky-deeper); }
.lp-cta-text p {
  font-size: 1.1rem; color: var(--ink-mid);
  font-weight: 700; margin-bottom: 40px; line-height: 1.6;
}
.lp-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sky); color: #fff;
  padding: 18px 48px; border-radius: 99px;
  font-weight: 900; font-size: 1.2rem;
  box-shadow: 0 12px 32px var(--sky-glow);
  transition: background 0.2s, transform 0.2s;
  border: 3px solid rgba(255,255,255,0.35);
  white-space: nowrap;
  text-decoration: none;
}
.lp-cta-btn:hover { background: var(--sky-dark); transform: translateY(-4px); }
.lp-cta-img-wrap {
  position: relative; z-index: 1;
  width: 340px; flex-shrink: 0;
}
.lp-cta-img-wrap img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(-10px 20px 40px rgba(0,0,0,0.12));
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
#lp-footer {
  background: var(--ink); color: rgba(255,255,255,0.80);
  padding-top: 80px;
}
.lp-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 60px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lp-footer-brand .lp-logo { color: #fff; margin-bottom: 20px; display: inline-flex; }
.lp-footer-brand .lp-logo span { color: var(--sky); }
.lp-footer-brand p {
  font-size: 0.95rem; line-height: 1.7; font-weight: 600;
  color: rgba(255,255,255,0.60); margin-bottom: 28px;
}
.lp-socials { display: flex; gap: 12px; }
.lp-socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.lp-socials a:hover { background: var(--sky); color: #fff; transform: translateY(-3px); }
.lp-footer-col h4 {
  font-size: 1rem; font-weight: 800; color: #fff;
  margin-bottom: 20px; letter-spacing: 0.5px;
}
.lp-footer-col a {
  display: block; font-size: 0.92rem; font-weight: 600;
  color: rgba(255,255,255,0.58); margin-bottom: 12px;
  transition: color 0.2s, transform 0.2s; text-decoration: none;
}
.lp-footer-col a:hover { color: var(--sky); transform: translateX(4px); }
.lp-footer-rating { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.lp-footer-stars { color: #F59E0B; font-size: 1.1rem; }
.lp-footer-rating span:last-child { font-size: 0.85rem; color: rgba(255,255,255,0.50); font-weight: 600; }
.lp-footer-bottom { padding: 24px 0; }
.lp-footer-bottom .lp-container {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.9rem; color: rgba(255,255,255,0.40); font-weight: 600;
  flex-wrap: wrap; gap: 8px;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .lp-feat-grid { grid-template-columns: repeat(2,1fr); }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .lp-hero-inner { flex-direction: column; text-align: center; }
  .lp-hero-text { order: 2; }
  .lp-hero-sub { max-width: 100%; }
  .lp-hero-visual { order: 1; min-height: 440px; width: 100%; }
  .lp-pets-float { display: none; }
  .lp-phone { width: 250px; }
  .lp-phone-screen { height: 480px; }
  .lp-stores { justify-content: center; }
  .lp-steps-grid { flex-direction: column; align-items: center; gap: 40px; }
  .lp-step-arrow { display: none; }
  .lp-stats-grid { grid-template-columns: repeat(2,1fr); }
  .lp-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .lp-cta-box { grid-template-columns: 1fr; text-align: center; padding: 60px 40px; }
  .lp-cta-img-wrap { width: 240px; margin: 0 auto; }
  .lp-nav-links { display: none; }
}
@media (max-width: 600px) {
  .lp-feat-grid { grid-template-columns: 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr; }
  .lp-hero-h1 { font-size: 3.5rem; }
  .lp-hero-tagline { font-size: 1.5rem; }
  .lp-cta-text h2 { font-size: 2rem; }
  .lp-section-header h2 { font-size: 2.2rem; }
  .lp-container { padding: 0 20px; }
  .lp-cta-box { padding: 48px 24px; border-radius: 28px; }
}

/* ══════════════════════════════════════════════════
   ẢNH BO TRÒN ĐẸP
══════════════════════════════════════════════════ */

/* Ảnh hero pets */
.lp-pets-float {
  filter: drop-shadow(0 24px 48px rgba(91,184,212,0.2)) drop-shadow(0 8px 16px rgba(0,0,0,0.08));
}

/* Ảnh CTA */
.lp-cta-img-wrap img {
  border-radius: 28px;
  filter: drop-shadow(-10px 16px 40px rgba(0,0,0,0.12));
}

/* Ảnh màn hình app bên trong phone frame */
.lp-phone-screen img {
  object-position: top center;
}

/* Step emoji — bo tròn nền */
.lp-step-emoji {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  background: var(--sky-light);
  border-radius: 50%;
  font-size: 2rem;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(91,184,212,0.20);
}

/* Avatar viền nhẹ */
.lp-avatar {
  border: 2px solid rgba(91,184,212,0.35);
}

/* FAQ */
#lp-faq { padding: 100px 0; background: var(--cream-2); }
.lp-faq-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.lp-faq-item {
  background: var(--white); border-radius: var(--r-sm);
  padding: 28px 32px; border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.lp-faq-item h3 { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.lp-faq-item p { font-size: 0.95rem; color: var(--ink-mid); line-height: 1.7; font-weight: 600; }

