/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --primary:       #1E40AF;
  --primary-light: #3B82F6;
  --accent:        #F59E0B;
  --dark:          #1E3A8A;
  --bg:            #F8FAFC;
  --white:         #ffffff;
  --text:          #1F2937;
  --text-muted:    #6B7280;
  --border:        #E5E7EB;
  --radius:        14px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --shadow-md:     0 4px 24px rgba(30,64,175,.10);
  --shadow-lg:     0 12px 40px rgba(30,64,175,.18);
  --transition:    .22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   LANGUAGE SWITCHING
   ============================================================ */
html.lang-en .vi-text { display: none !important; }
html.lang-vi .en-text { display: none !important; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}
@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes chip-in {
  from { opacity: 0; transform: translateY(8px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(245,158,11,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  background: rgba(30, 64, 175, .88);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
}
.lang-sep {
  color: rgba(255,255,255,.25);
  font-size: 12px;
  padding: 0 3px;
  user-select: none;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: .08em;
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  line-height: 1;
}
.lang-btn:hover  { color: white; background: rgba(255,255,255,.1); }
.lang-btn.active { color: white; background: rgba(255,255,255,.18); }

.nav-cta {
  background: white;
  color: var(--primary);
  padding: 9px 22px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

/* ============================================================
   STORE BUTTONS
   ============================================================ */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0a0a0a;
  color: white;
  padding: 13px 24px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.14);
  min-width: 168px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
}
.btn-store:hover {
  background: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,.4);
}
.btn-store svg { flex-shrink: 0; }
.btn-store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.btn-store-sublabel {
  font-size: 10px;
  line-height: 1;
  opacity: .68;
  margin-bottom: 3px;
  letter-spacing: .02em;
}
.btn-store-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(-45deg, #1E3A8A, #1E40AF, #2563EB, #1D4ED8, #1E40AF);
  background-size: 400% 400%;
  animation: gradient-shift 14s ease infinite;
  display: flex;
  align-items: center;
  padding: 104px 32px 80px;
  position: relative;
  overflow: hidden;
}

/* Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-orb-1 {
  width: 700px; height: 700px;
  top: -25%; right: -12%;
  background: radial-gradient(circle, rgba(96,165,250,.18) 0%, transparent 65%);
  animation: float 10s ease-in-out infinite;
}
.hero-orb-2 {
  width: 450px; height: 450px;
  bottom: -18%; left: -8%;
  background: radial-gradient(circle, rgba(245,158,11,.14) 0%, transparent 65%);
  animation: float-delayed 13s ease-in-out infinite;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  top: 20%; left: 35%;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 65%);
  animation: float 8s ease-in-out infinite 2s;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { color: white; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  margin-bottom: 28px;
  animation: pulse-ring 3s ease infinite 1s;
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.7);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.6;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 44px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 16px 24px;
  width: fit-content;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 22px;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child  { padding-right: 0; }
.hero-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: white;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,.62);
  font-weight: 500;
  white-space: nowrap;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.18);
}

.cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Phone / Screenshot */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-wrap {
  position: relative;
  width: 240px;
  flex-shrink: 0;
}

.phone-mockup {
  width: 230px;
  height: 400px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 44px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 22px 18px 28px;
  gap: 14px;
  box-shadow:
    0 40px 80px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.14);
  animation: float 8s ease-in-out infinite;
  position: relative;
}

.phone-notch {
  width: 64px;
  height: 5px;
  background: rgba(255,255,255,.25);
  border-radius: 3px;
  align-self: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.phone-screen-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.phone-screen-bar {
  height: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.18);
}
.phone-screen-bar--wide  { flex: 1; }
.phone-screen-bar--short { width: 36px; }

.phone-screen-card {
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  height: 88px;
}
.phone-screen-card--sm { height: 64px; }

/* Floating chips */
.phone-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  animation: chip-in .6s ease both;
}
.phone-chip-top {
  top: 60px;
  left: -80px;
  animation-delay: .4s;
}
.phone-chip-bottom {
  bottom: 100px;
  right: -72px;
  animation-delay: .7s;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section { padding: 96px 32px; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 64px;
  max-width: 520px;
  line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section { background: var(--bg); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.steps-connector {
  position: absolute;
  top: 52px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--accent) 100%);
  opacity: .2;
  pointer-events: none;
}

.step-card {
  background: var(--white);
  border-radius: 18px;
  padding: 40px 28px 32px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--bg);
}

.step-icon-wrap {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--icon-from, #EFF6FF) 0%, var(--icon-to, #DBEAFE) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--icon-color, var(--primary));
  transition: background var(--transition), transform var(--transition);
}
.step-card:hover .step-icon-wrap {
  transform: scale(1.06);
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -.01em;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--bg);
  border-radius: 18px;
  padding: 36px 22px 30px;
  text-align: center;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--svc-from, #EFF6FF) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::after { opacity: 1; }

.service-icon-wrap {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, var(--svc-from, #EFF6FF) 0%, var(--svc-to, #DBEAFE) 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--svc-color, var(--primary));
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 1;
}
.service-card:hover .service-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

.service-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  z-index: 1;
}

/* ============================================================
   TRUST / WHY DJINNY
   ============================================================ */
.trust-section { background: var(--bg); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.trust-card {
  background: var(--white);
  border-radius: 18px;
  padding: 40px 32px 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.trust-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.trust-icon-wrap {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 22px;
  transition: transform var(--transition);
}
.trust-card:hover .trust-icon-wrap { transform: scale(1.06); }

.trust-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.trust-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.cta-section {
  background: var(--dark);
  padding: 110px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-orb-1 {
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59,130,246,.22) 0%, transparent 60%);
}
.cta-orb-2 {
  width: 300px; height: 300px;
  bottom: -100px; right: 10%;
  background: radial-gradient(circle, rgba(245,158,11,.18) 0%, transparent 65%);
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  color: white;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 14px;
}
.cta-section h2 em {
  font-style: normal;
  color: var(--accent);
}

.cta-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,.6);
  margin-bottom: 44px;
  line-height: 1.65;
}

.cta-buttons-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0B1629;
  padding: 56px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: rgba(255,255,255,.44);
  font-size: 14px;
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,.85); }

.footer-divider {
  width: 40px; height: 1px;
  background: rgba(255,255,255,.08);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,.26);
}

/* ============================================================
   LEGAL PAGES  (privacy / terms)
   ============================================================ */
.page-hero {
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 120px 32px 64px;
  color: white;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.12;
}
.page-hero p {
  font-size: 16px;
  margin-top: 12px;
  opacity: .7;
}

.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 32px 100px;
}
.page-content h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin: 44px 0 12px;
  letter-spacing: -.01em;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.page-content ul {
  padding-left: 22px;
  list-style: disc;
  margin-bottom: 16px;
}
.page-content li {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}
.page-content strong { color: var(--text); }

.last-updated {
  display: inline-block;
  background: #EFF6FF;
  color: var(--primary);
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 40px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 300px; gap: 52px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .phone-chip-top  { left: -60px; }
  .phone-chip-bottom { right: -56px; }
}

@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 52px;
  }
  .hero .cta-buttons  { justify-content: center; }
  .hero-badge         { justify-content: center; }
  .hero-phone         { order: -1; }
  .hero-stats         { margin: 0 auto 40px; }

  .phone-chip-top    { left: -48px; top: 40px; }
  .phone-chip-bottom { right: -48px; bottom: 80px; }

  .steps-grid    { grid-template-columns: 1fr; gap: 44px; max-width: 420px; margin: 0 auto; }
  .steps-connector { display: none; }
  .trust-grid    { grid-template-columns: 1fr; gap: 20px; }

  .section         { padding: 72px 20px; }
  .hero            { padding: 100px 20px 72px; }
  .cta-section     { padding: 80px 20px; }
  .section-subtitle { margin-bottom: 48px; }
}

@media (max-width: 640px) {
  .hero-stats { flex-wrap: wrap; gap: 16px; padding: 14px 20px; }
  .hero-stat-divider { display: none; }
  .hero-stat  { padding: 0 10px; }
}

@media (max-width: 560px) {
  .services-grid     { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service-card      { padding: 22px 14px 20px; }
  .service-icon-wrap { width: 54px; height: 54px; border-radius: 14px; margin-bottom: 14px; }
  .nav-inner         { padding: 0 20px; }
  .nav-cta           { display: none; }
  .nav-right         { gap: 8px; }
  .footer-links      { gap: 18px; flex-direction: column; }
  .section           { padding: 56px 18px; }
  .cta-section       { padding: 60px 18px; }
  .cta-buttons, .cta-buttons-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .phone-chip { font-size: 11px; padding: 7px 11px; }
  .phone-chip-top    { left: -30px; }
  .phone-chip-bottom { right: -28px; }
  .phone-mockup { width: 200px; height: 360px; }
  .phone-wrap { width: 200px; }
}
