/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Be Vietnam Pro', sans-serif; background: #fff; color: #222; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== VARIABLES ===== */
:root {
  --red: #e53935;
  --red-dark: #c62828;
  --pink-bg: #fff5f5;
  --pink-light: #fde8e8;
  --pink-hero: #fff0f0;
  --gray: #666;
  --gray-light: #f5f5f5;
  --border: #eee;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --radius: 12px;
  --transition: .25s ease;
}

/* ===== CONTAINER ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 0;
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.nav-logo { display: flex; align-items: center; height: 100%; }
.logo-img { height: 32px; width: auto; object-fit: contain; }
.footer-logo-img { height: 38px; filter: brightness(0) invert(1); } /* Make footer logo white on dark bg */

.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-item { padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #444; transition: color var(--transition); }
.nav-item:hover, .nav-item.active { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-login { font-size: 14px; font-weight: 500; color: #444; padding: 6px 14px; border-radius: 8px; transition: color var(--transition); }
.btn-login:hover { color: var(--red); }
.btn-register { font-size: 14px; font-weight: 600; background: var(--red); color: #fff; padding: 8px 20px; border-radius: 8px; transition: background var(--transition), transform var(--transition); }
.btn-register:hover { background: var(--red-dark); transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 40%, #fce4ec 100%);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(252,228,236,.6) 0%, transparent 70%);
}
/* Petals */

/* Petals */
.petal {
  position: absolute; width: 14px; height: 18px;
  background: radial-gradient(ellipse, #f8bbd0, #f48fb1);
  border-radius: 50% 0 50% 0;
  animation: petalFall linear infinite;
  opacity: .7;
}
.petal-1  { left: 8%;  top: -20px; animation-duration: 8s;  animation-delay: 0s;   width:12px; height:16px; }
.petal-2  { left: 20%; top: -20px; animation-duration: 10s; animation-delay: 2s;   width:10px; height:14px; }
.petal-3  { left: 75%; top: -20px; animation-duration: 9s;  animation-delay: 1s;   width:14px; height:18px; }
.petal-4  { left: 85%; top: -20px; animation-duration: 11s; animation-delay: 3s;   width:8px;  height:12px; }
.petal-5  { left: 55%; top: -20px; animation-duration: 7s;  animation-delay: 4s;   width:11px; height:15px; }
.petal-6  { left: 40%; top: -20px; animation-duration: 12s; animation-delay: 1.5s; width:9px;  height:13px; }

@keyframes petalFall {
  0%   { transform: translateY(0) rotate(0deg)   translateX(0);     opacity: .8; }
  50%  { transform: translateY(50vh) rotate(180deg) translateX(30px); opacity: .5; }
  100% { transform: translateY(110vh) rotate(360deg) translateX(-20px); opacity: 0; }
}

.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }

.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid #f8bbd0; color: var(--red); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 50px; margin-bottom: 20px; }
.badge-dot { font-size: 10px; }
.hero-title { font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; line-height: 1.25; color: #1a1a1a; margin-bottom: 16px; }
.brand-red { color: var(--red); }
.hero-desc { font-size: 15px; color: #666; max-width: 440px; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  font-size: 15px; font-weight: 600;
  padding: 12px 26px; border-radius: 50px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(229,57,53,.35);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(229,57,53,.45); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #333;
  font-size: 15px; font-weight: 600;
  padding: 11px 26px; border-radius: 50px;
  border: 2px solid #ddd;
  transition: border-color var(--transition), transform var(--transition);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat-item { display: flex; align-items: center; gap: 10px; }
.stat-icon { font-size: 22px; }
.stat-number { display: block; font-size: 17px; font-weight: 800; color: #1a1a1a; }
.stat-label { display: block; font-size: 12px; color: #888; }

/* ===== PHONE MOCKUPS ===== */
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-phones-img {
  width: 520px;
  max-width: 100%;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,.18));
  animation: floatPhone 4s ease-in-out infinite;
  position: relative; z-index: 2;
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}


.phone-screen { padding: 10px 10px 8px; height: 100%; overflow: hidden; font-size: 9px; }
.phone-screen-sm { padding: 8px 9px 6px; font-size: 8px; }
.phone-statusbar { display: flex; justify-content: space-between; font-size: 7px; color: #555; margin-bottom: 5px; }

/* Search bar */
.phone-search-bar {
  display: flex; align-items: center; gap: 4px;
  background: #f5f5f5; border-radius: 8px;
  padding: 5px 8px; margin-bottom: 7px;
}
.search-ic { font-size: 9px; color: #999; }
.search-ph { font-size: 8px; color: #bbb; }

/* Banner with image */
.phone-banner { border-radius: 10px; overflow: hidden; margin-bottom: 7px; position: relative; height: 95px; }
.banner-cover { position: relative; width: 100%; height: 100%; }
.banner-cover img { width: 100%; height: 100%; object-fit: cover; }
.banner-gradient { position: absolute; inset: 0; background: linear-gradient(to right, rgba(180,30,30,.75) 0%, rgba(0,0,0,.2) 100%); }
.banner-text-wrap { position: absolute; inset: 0; padding: 8px 10px; display: flex; flex-direction: column; justify-content: space-between; }
.banner-tag { background: rgba(255,255,255,.3); color: #fff; font-size: 7px; font-weight: 700; padding: 2px 5px; border-radius: 3px; display: inline-block; width: fit-content; }
.phone-banner p { font-size: 9.5px; font-weight: 800; line-height: 1.25; color: #fff; margin: 0; }
.banner-btn { background: var(--red); color: #fff; font-size: 7px; font-weight: 700; border: none; border-radius: 4px; padding: 3px 8px; cursor: pointer; width: fit-content; }

/* Tabs */
.phone-tabs { display: flex; gap: 0; margin-bottom: 6px; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.ptab { flex: 1; text-align: center; font-size: 7.5px; font-weight: 500; color: #aaa; padding: 2px 0; }
.ptab.active { color: var(--red); font-weight: 700; border-bottom: 1.5px solid var(--red); margin-bottom: -6px; padding-bottom: 4px; }

.phone-section-title { font-size: 9px; font-weight: 700; color: #333; margin: 5px 0 5px; }
.phone-update-header { display: flex; justify-content: space-between; align-items: center; margin: 5px 0; }
.see-all { font-size: 7px; color: var(--red); font-weight: 600; }
.phone-books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 5px; }
.phone-book { height: 52px; border-radius: 5px; overflow: hidden; }

/* Update list with thumb */
.phone-update-list { display: flex; flex-direction: column; gap: 5px; }
.update-item { display: flex; align-items: center; gap: 6px; }
.update-thumb { width: 28px; height: 28px; border-radius: 4px; flex-shrink: 0; }
.update-icon { font-size: 13px; }
.update-info { flex: 1; min-width: 0; }
.update-info p { font-size: 7.5px; font-weight: 600; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-info span { font-size: 6.5px; color: #999; }

/* Reading view */
.reading-header { display: flex; align-items: center; gap: 4px; font-size: 8px; color: #555; margin-bottom: 6px; }
.reading-title { font-size: 8.5px; font-weight: 700; color: #222; margin-bottom: 7px; border-bottom: 1px solid #f0f0f0; padding-bottom: 5px; line-height: 1.4; }
.reading-content p { font-size: 7.5px; color: #444; margin-bottom: 5px; line-height: 1.6; }
.reading-font-bar { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 8px; color: #777; border-top: 1px solid #f0f0f0; padding-top: 5px; }
.rfont-slider { flex: 1; height: 3px; background: #eee; border-radius: 2px; }
.rfont-slider div { height: 100%; background: var(--red); border-radius: 2px; }
.reading-controls { display: flex; justify-content: space-around; margin-top: 5px; font-size: 11px; color: #666; border-top: 1px solid #f0f0f0; padding-top: 5px; }

/* ===== WHY SECTION ===== */
.why-section { padding: 80px 0; background: #fff; }
.section-title { text-align: center; font-size: clamp(22px, 2.8vw, 32px); font-weight: 800; color: #1a1a1a; margin-bottom: 10px; }
.section-subtitle { text-align: center; font-size: 15px; color: #888; margin-bottom: 48px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { background: #fff; border: 1.5px solid #f0f0f0; border-radius: 16px; padding: 28px 22px; text-align: center; transition: transform var(--transition), box-shadow var(--transition); }
.why-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.1); }
.why-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 16px; }
.why-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: #1a1a1a; }
.why-card p { font-size: 13px; color: #777; line-height: 1.7; }

/* ===== GENRES ===== */
.genres-section { padding: 80px 0; background: var(--gray-light); }
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-title-left { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; color: #1a1a1a; }
.view-all-link { font-size: 14px; font-weight: 600; color: var(--red); transition: opacity var(--transition); }
.view-all-link:hover { opacity: .7; }
.genres-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.genre-card { border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); }
.genre-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.15); }
.genre-img-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.genre-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.genre-card:hover .genre-img-wrap img { transform: scale(1.08); }
.genre-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 55%); }
.genre-info { background: #fff; padding: 10px 12px; }
.genre-name { display: block; font-size: 13px; font-weight: 700; color: #1a1a1a; }
.genre-count { display: block; font-size: 11px; color: #999; margin-top: 2px; }

/* ===== FEATURES ===== */
.features-section { padding: 80px 0; background: #fff; }
.features-inner { display: grid; grid-template-columns: 1fr 1.1fr 0.8fr; gap: 48px; align-items: center; }
.reading-app-demo { position: relative; }
.reading-girl-wrap { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.girl-img { width: 100%; object-fit: cover; border-radius: 20px; }
.reading-progress-card {
  position: absolute; bottom: -20px; right: -20px;
  background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 180px;
  animation: floatPhone 3s ease-in-out infinite;
}
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.toggle-switch { position: relative; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-label { display: block; width: 36px; height: 20px; background: #4caf50; border-radius: 10px; cursor: pointer; position: relative; transition: background var(--transition); }
.toggle-label::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: left var(--transition); }
.toggle-switch input:checked ~ .toggle-label { background: #4caf50; }
.toggle-switch input:checked ~ .toggle-label::after { left: 18px; }
.progress-item { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.progress-bar-wrap { flex: 1; height: 5px; background: #eee; border-radius: 3px; }
.progress-bar { height: 100%; background: var(--red); border-radius: 3px; }

.features-title { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; color: #1a1a1a; margin-bottom: 12px; line-height: 1.3; }
.features-desc { font-size: 14px; color: #777; margin-bottom: 24px; }
.features-list { display: flex; flex-direction: column; gap: 12px; }
.features-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #444; }
.feat-icon { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.feat-red { background: #fde8e8; color: var(--red); }
.feat-green { background: #e8f5e9; color: #2e7d32; }

/* Phone mini */
.phone-mini {
  width: 165px; height: 330px;
  background: #1a1a1a;
  border-radius: 30px;
  padding: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  margin: 0 auto;
  animation: floatPhone 3.5s ease-in-out infinite;
  animation-delay: -.5s;
}
.phone-mini .phone-screen { background: #fff; border-radius: 24px; height: 100%; overflow: hidden; padding: 10px; }
.reading-content-mini p { font-size: 8.5px; color: #444; margin-bottom: 6px; line-height: 1.6; }
.reading-bottom-controls { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 9px; color: #666; border-top: 1px solid #eee; padding-top: 6px; }
.reading-bottom-controls div { flex: 1; height: 4px; background: #eee; border-radius: 2px; }
.reading-bottom-controls div div { height: 100%; background: var(--red); border-radius: 2px; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding: 80px 0; background: var(--gray-light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.testimonial-card {
  background: #fff; border-radius: 16px; padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.12); }
.testimonial-card--active { border: 2px solid var(--red); }
.quote-mark { font-size: 48px; color: #fde8e8; font-family: Georgia, serif; line-height: .8; margin-bottom: 8px; }
.testimonial-text { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: #fff; flex-shrink: 0; }
.author-name { font-size: 14px; font-weight: 700; color: #1a1a1a; }
.author-role { font-size: 12px; color: #999; }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ddd; cursor: pointer; transition: background var(--transition), width var(--transition); }
.dot-active { background: var(--red); width: 24px; border-radius: 4px; }

/* ===== CTA ===== */
.cta-section {
  padding: 72px 0;
  background: linear-gradient(135deg, #fff5f5, #fce4ec);
}
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-title { font-size: clamp(22px, 2.8vw, 34px); font-weight: 800; color: #1a1a1a; line-height: 1.3; margin-bottom: 12px; }
.cta-desc { font-size: 15px; color: #666; margin-bottom: 28px; }

.cta-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.cta-phone-img { width: 220px; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.15); animation: floatPhone 4s ease-in-out infinite; }
.cta-badge-new {
  position: absolute; top: 0; right: -10px;
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 50px;
  box-shadow: 0 4px 12px rgba(229,57,53,.4);
}

/* ===== FOOTER ===== */
.footer { background: #1a1a1a; color: #ccc; padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #333; }
.footer-logo .logo-text { color: #fff; }
.footer-about p { font-size: 13px; color: #888; margin-top: 14px; line-height: 1.8; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13px; color: #888; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--red); }
.social-icons { display: flex; gap: 10px; }
.social-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #2a2a2a; color: #ccc;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}
.social-icon:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.footer-bottom { text-align: center; padding: 18px 0; font-size: 13px; color: #555; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .genres-grid { grid-template-columns: repeat(3, 1fr); }
  .features-inner { grid-template-columns: 1fr 1fr; }
  .features-phone-wrap { display: none; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: block; margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .genres-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .features-inner { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-store-btns { justify-content: center; }
  .cta-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .genres-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
