/* ================================================
   ĐÓNG GÓI THƯƠNG HIỆU — Landing Page Styles
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2C1B18;
  --primary-light: #4A2E28;
  --accent: #C8860A;
  --accent-light: #E8A020;
  --accent-soft: #F5DFA0;
  --bg: #FDFBF7;
  --bg-alt: #F5F0E8;
  --bg-dark: #1A0F0C;
  --bg-dark2: #120A08;
  --text: #2C1B18;
  --text-muted: #7A6055;
  --text-light: #B09080;
  --card: #FFFFFF;
  --border: #E8DDD5;
  --border-dark: rgba(255,255,255,0.1);
  --phone-w: 280px;
  --phone-h: 560px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 24px rgba(44,27,24,0.08);
  --shadow-phone: 0 32px 80px rgba(44,27,24,0.35), 0 8px 20px rgba(44,27,24,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ──────────────────────────────── */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { font-size: 0.97rem; color: var(--text-muted); }

/* ── Utility ──────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 16px;
}
.tag.dark { background: rgba(200,134,10,0.15); color: var(--accent-light); }
.divider { width: 48px; height: 3px; background: var(--accent); border-radius: 4px; margin: 12px 0 20px; }

/* ── NAV ──────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(253,251,247,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
nav.scrolled { padding: 12px 24px; box-shadow: 0 4px 20px rgba(44,27,24,0.08); }
.nav-logo { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.05rem; color: var(--primary); }
.nav-logo span { color: var(--accent); }
.nav-cta {
  background: var(--primary); color: #fff;
  padding: 8px 20px; border-radius: 99px;
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--primary-light); transform: translateY(-1px); }

/* ── HERO ─────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--bg-dark) 0%, #2C1B18 55%, #3D2518 100%);
  display: flex; align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  position: relative;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200,134,10,0.12) 0%, transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  max-width: 1100px; margin: 0 auto; width: 100%;
  position: relative; z-index: 2;
}
.hero-text h1 { color: #fff; }
.hero-text h1 em { color: var(--accent-light); font-style: italic; }
.hero-text p {
  color: rgba(255,255,255,0.65); font-size: 1.05rem;
  margin: 20px 0 32px; max-width: 440px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 99px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,134,10,0.4); }
.btn-ghost {
  color: rgba(255,255,255,0.75);
  padding: 14px 24px; border-radius: 99px;
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.hero-stats {
  display: flex; gap: 28px; margin-top: 40px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item { text-align: left; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--accent-light); font-family: 'Playfair Display', serif; }
.stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* Hero phone */
.hero-phone {
  display: flex; justify-content: center; align-items: center;
  perspective: 1000px;
}
.hero-phone-inner {
  transform: rotate3d(0.3, -1, 0.1, 18deg);
  transition: transform 0.6s ease;
  animation: floatPhone 6s ease-in-out infinite;
}
.hero-phone-inner:hover { transform: rotate3d(0.1, -0.5, 0.05, 8deg) scale(1.03); }
@keyframes floatPhone {
  0%, 100% { transform: rotate3d(0.3, -1, 0.1, 18deg) translateY(0); }
  50% { transform: rotate3d(0.3, -1, 0.1, 18deg) translateY(-12px); }
}

/* ── PAIN POINTS ─────────────────────────────── */
#pain {
  padding: 100px 24px;
  background: var(--bg-alt);
}
.pain-header { text-align: center; margin-bottom: 56px; }
.pain-header .divider { margin: 12px auto 0; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain-card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(44,27,24,0.12); }
.pain-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.pain-card h3 { margin-bottom: 8px; font-size: 1rem; }

/* ── FEATURE SECTIONS ─────────────────────────── */
.feature-section {
  padding: 110px 24px;
}
.feature-section.alt { background: var(--bg-alt); }
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.feature-grid.reverse { direction: rtl; }
.feature-grid.reverse > * { direction: ltr; }
.feature-text h2 { margin-bottom: 12px; }
.feature-text p { margin-bottom: 24px; font-size: 1rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--text-muted);
}
.feature-list li::before {
  content: '✦';
  color: var(--accent); font-size: 0.75rem; margin-top: 3px; flex-shrink: 0;
}

/* ── PHONE MOCKUP ─────────────────────────────── */
.phone-wrapper {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.phone-frame {
  width: var(--phone-w); height: var(--phone-h);
  background: #1A0F0C;
  border-radius: 40px;
  border: 3px solid #3D2518;
  box-shadow: var(--shadow-phone);
  position: relative; overflow: hidden;
  outline: 6px solid #0D0604;
}
/* Notch */
.phone-frame::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px;
  background: #0D0604;
  border-radius: 0 0 18px 18px;
  z-index: 20;
}
/* Side button */
.phone-frame::after {
  content: '';
  position: absolute; right: -4px; top: 120px;
  width: 3px; height: 60px;
  background: #3D2518; border-radius: 2px;
}
.phone-screen {
  width: 100%; height: 100%;
  overflow: hidden; position: relative;
  background: #FDFBF7;
}
.screen-slide {
  width: 100%; height: 100%;
  position: absolute; top: 0; left: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s;
}
.screen-slide.entering { transform: translateX(100%); opacity: 0; }
.screen-slide.active { transform: translateX(0); opacity: 1; }
.screen-slide.exiting { transform: translateX(-110%); opacity: 0; }

/* Hotspot overlay */
.hotspot {
  position: absolute;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 50;
}
.hotspot:hover { background: rgba(200,134,10,0.15); }
.hotspot-ring {
  position: absolute;
  border: 2px solid rgba(200,134,10,0.7);
  border-radius: 50%;
  animation: pulseRing 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200,134,10,0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(200,134,10,0); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.phone-nav-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 30;
}
.phone-nav-dot {
  width: 6px; height: 6px; border-radius: 99px;
  background: rgba(44,27,24,0.2);
  cursor: pointer; transition: all 0.2s;
}
.phone-nav-dot.active { width: 20px; background: var(--accent); }

/* Hint label */
.phone-hint {
  position: absolute; bottom: -48px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; color: var(--text-light);
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.phone-hint svg { opacity: 0.5; }

/* ── PROCESS SECTION ─────────────────────────── */
#process {
  padding: 100px 24px;
  background: var(--bg-dark);
}
.process-header { text-align: center; margin-bottom: 64px; }
.process-header h2 { color: #fff; }
.process-header .divider { margin: 12px auto 0; }
.process-header p { color: rgba(255,255,255,0.55); margin-top: 12px; }
.process-grid { display: flex; flex-direction: column; gap: 0; max-width: 820px; margin: 0 auto; }
.process-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 0; position: relative;
}
.process-item:not(:last-child)::after {
  content: '';
  position: absolute; left: 39px; top: 64px; bottom: 0;
  width: 2px; background: rgba(255,255,255,0.08);
}
.process-num {
  font-size: 3.5rem; font-weight: 900; font-family: 'Playfair Display', serif;
  color: rgba(255,255,255,0.08); line-height: 1;
  padding-top: 4px;
}
.process-content {
  padding: 24px 0 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}
.process-item:first-child .process-content { border-top: none; padding-top: 4px; }
.process-content h3 { color: var(--accent-light); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.process-sub { display: flex; flex-direction: column; gap: 10px; }
.process-sub-item { display: flex; gap: 12px; }
.process-sub-num { font-size: 0.78rem; font-weight: 800; color: var(--accent); min-width: 28px; padding-top: 1px; }
.process-sub-text { font-size: 0.88rem; color: rgba(255,255,255,0.65); }

/* ── TARGET SECTION ──────────────────────────── */
#target {
  padding: 100px 24px;
  background: var(--bg);
}
.target-header { text-align: center; margin-bottom: 52px; }
.target-header .divider { margin: 12px auto 0; }
.target-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; }
.target-card {
  background: var(--card); padding: 36px 32px;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.25s;
}
.target-card:hover { border-color: var(--accent-soft); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(44,27,24,0.12); }
.target-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.target-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.target-card p { font-size: 0.88rem; }

/* ── CTA SECTION ─────────────────────────────── */
#cta {
  padding: 120px 24px;
  background: linear-gradient(160deg, var(--bg-dark2) 0%, #2C1B18 100%);
  text-align: center; position: relative; overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200,134,10,0.1) 0%, transparent 65%);
  pointer-events: none;
}
#cta h2 { color: #fff; margin-bottom: 16px; position: relative; z-index: 2; }
#cta p { color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto 40px; position: relative; z-index: 2; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.btn-cta-primary {
  background: var(--accent); color: #fff;
  padding: 16px 36px; border-radius: 99px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(200,134,10,0.4);
}
.btn-cta-primary:hover { background: var(--accent-light); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(200,134,10,0.55); }
.btn-cta-ghost {
  color: rgba(255,255,255,0.75); padding: 16px 32px; border-radius: 99px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-cta-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.06); }
.cta-note { margin-top: 24px; font-size: 0.78rem; color: rgba(255,255,255,0.3); position: relative; z-index: 2; }

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--bg-dark2); padding: 32px 24px;
  text-align: center; border-top: 1px solid rgba(255,255,255,0.05);
}
footer p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
footer a { color: var(--accent); text-decoration: none; }

/* ── SCROLL ANIMATIONS ─────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-text p { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid.reverse { direction: ltr; }
  .pain-grid { grid-template-columns: 1fr; }
  .target-grid { grid-template-columns: 1fr; }
  :root { --phone-w: 240px; --phone-h: 480px; }
}
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .hero-stats { gap: 20px; }
  :root { --phone-w: 220px; --phone-h: 440px; }
}

/* ── PHONE SCREEN INTERNALS ──────────────────── */
.app-header {
  padding: 32px 16px 10px;
  background: #FDFBF7;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(44,27,24,0.06);
  position: relative; z-index: 5;
}
.app-header-title { font-size: 11px; font-weight: 800; color: #2C1B18; font-family: 'Inter', sans-serif; }
.app-back { color: #2C1B18; font-size: 20px; cursor: pointer; }
.app-body { padding: 12px 14px 80px; overflow-y: auto; height: calc(100% - 58px); }
.app-body::-webkit-scrollbar { display: none; }

/* Color swatches */
.color-row { display: flex; gap: 8px; margin-bottom: 12px; }
.color-swatch {
  flex: 1; height: 40px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  position: relative; cursor: pointer;
}
.color-swatch-label { font-size: 7px; text-align: center; margin-top: 3px; color: #7A6055; }

/* Section title inside app */
.app-section-label {
  font-size: 8px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(44,27,24,0.35);
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 6px;
}
.app-card {
  background: #fff; border-radius: 14px; padding: 12px;
  border: 1px solid rgba(44,27,24,0.06); margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(44,27,24,0.04);
}
.app-tag {
  display: inline-block; font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
  background: rgba(200,134,10,0.1); color: #C8860A;
  margin-bottom: 6px;
}
.app-btn {
  width: 100%; padding: 11px; border-radius: 12px;
  background: #2C1B18; color: #fff;
  font-size: 11px; font-weight: 700; text-align: center;
  position: absolute; bottom: 16px; left: 14px; right: 14px;
  width: calc(100% - 28px);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
}
.app-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 99px;
  font-size: 9px; font-weight: 700;
  background: rgba(44,27,24,0.06); color: #2C1B18;
  cursor: pointer; transition: all 0.15s;
}
.app-pill.active { background: #2C1B18; color: #fff; }

/* Caption item */
.caption-item {
  padding: 10px 12px; border-radius: 10px;
  background: #fff; border: 1px solid rgba(44,27,24,0.06);
  margin-bottom: 8px; cursor: pointer;
  transition: border-color 0.2s;
}
.caption-item:hover { border-color: rgba(200,134,10,0.3); }
.caption-item-label { font-size: 8px; font-weight: 700; color: #C8860A; margin-bottom: 3px; }
.caption-item-text { font-size: 9px; color: #2C1B18; line-height: 1.5; }

/* Journey timeline */
.journey-item {
  display: flex; gap: 10px; margin-bottom: 8px; align-items: flex-start;
}
.journey-dot {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.journey-content { flex: 1; }
.journey-title { font-size: 9.5px; font-weight: 700; color: #2C1B18; margin-bottom: 2px; }
.journey-desc { font-size: 8px; color: #7A6055; line-height: 1.4; }

/* AI chips */
.ai-chip-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.ai-chip {
  padding: 4px 10px; border-radius: 99px;
  font-size: 9px; font-weight: 600;
  background: rgba(44,27,24,0.06); color: #2C1B18;
  cursor: pointer; transition: all 0.15s;
}
.ai-chip.primary { background: var(--accent); color: #fff; }
.ai-chip.secondary { background: rgba(200,134,10,0.15); color: var(--accent); }

/* Camera screen */
.camera-topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.camera-topic {
  padding: 8px; border-radius: 10px;
  background: rgba(44,27,24,0.05); border: 1px solid transparent;
  font-size: 9px; font-weight: 600; color: #2C1B18; text-align: center;
  cursor: pointer; transition: all 0.15s;
}
.camera-topic.selected { background: rgba(200,134,10,0.1); border-color: var(--accent); color: var(--accent); }
.style-rating { display: flex; gap: 3px; margin-top: 6px; }
.star { font-size: 14px; color: #C8860A; }
