/* ═══════════════════════════════════
   DESIGN TOKENS — 3ita Dark Navy
   Font: Be Vietnam Pro + JetBrains Mono
   Primary: #1877F2  Accent: #38BDF8
═══════════════════════════════════ */
:root {
  --fb: #1877F2;
  --fb-d: #1160CC;
  --fb-l: #60A5FA;
  --sky: #38BDF8;
  --orange: #F97316;
  --green: #22C55E;
  --pink: #F472B6;

  --bg: #0B0F1E;
  --bg2: #0F1629;
  --bg3: #151D35;
  --bg4: #1C2642;

  --text: #F1F5FF;
  --text2: #C8D6F0;
  --muted: #6B7FA8;

  --border: rgba(255, 255, 255, 0.06);
  --border2: rgba(24, 119, 242, 0.25);
  --border3: rgba(56, 189, 248, 0.18);

  --glow-fb: rgba(24, 119, 242, 0.30);
  --glow-sky: rgba(56, 189, 248, 0.18);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --font-main: 'Be Vietnam Pro', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

/* ═══ Global Language Display Rules ═══ */
/* Hide Vietnamese content for ALL languages except Vietnamese */
html:not([data-lang="vi"]) .vi-only {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Hide English content only when Vietnamese is selected */
html[data-lang="vi"] .en-only {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── AMBIENT ── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 65% at 15% -10%, rgba(24, 119, 242, 0.13) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 88% 108%, rgba(56, 189, 248, 0.07) 0%, transparent 55%);
}

.ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ════════════════════ NAV ════════════════════ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  gap: 20px;
  background: rgba(11, 15, 30, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.nav-logo .fallback {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fb-l);
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  flex: 1;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: var(--r-sm);
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--fb-l);
  background: rgba(24, 119, 242, 0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
}

.lang-btn {
  padding: 4px 11px;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn.active {
  background: var(--fb);
  color: #fff;
  box-shadow: 0 2px 8px var(--glow-fb);
}

.nav-signup {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--fb);
  color: #fff;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: var(--r-sm);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--glow-fb);
  transition: all 0.2s;
}

.nav-signup:hover {
  background: var(--fb-d);
  transform: translateY(-1px);
}

/* ════════════════════ HERO ════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 5% 70px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(24, 119, 242, 0.1);
  border: 1px solid rgba(24, 119, 242, 0.28);
  border-radius: 100px;
  padding: 5px 18px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--fb-l);
  margin-bottom: 26px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  animation: riseIn 0.7s ease both;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
  animation: breathe 2s infinite;
}

@keyframes breathe {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .35;
    transform: scale(1.7)
  }
}

.hero-h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  max-width: 850px;
  animation: riseIn 0.7s 0.1s ease both;
}

.hero-h1 .grad {
  background: linear-gradient(110deg, var(--fb-l) 0%, var(--sky) 55%, var(--fb-l) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.hero-sub {
  margin-top: 20px;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--text2);
  max-width: 600px;
  line-height: 1.78;
  font-weight: 400;
  animation: riseIn 0.7s 0.18s ease both;
}

.hero-ctas {
  margin-top: 38px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: riseIn 0.7s 0.26s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--fb);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 28px var(--glow-fb);
  transition: all 0.25s;
}

.btn-primary:hover {
  background: var(--fb-d);
  transform: translateY(-3px);
  box-shadow: 0 16px 44px var(--glow-fb);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border2);
  color: var(--text2);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s;
}

.btn-outline:hover {
  background: rgba(24, 119, 242, 0.08);
  border-color: var(--fb);
  color: var(--text);
  transform: translateY(-2px);
}

.hero-proof {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  animation: riseIn 0.7s 0.34s ease both;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.81rem;
  color: var(--muted);
  font-weight: 500;
}

.proof-item .ck {
  color: var(--green);
}

/* Hero screenshot */
.hero-screenshot {
  margin-top: 56px;
  width: 100%;
  max-width: 820px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(24, 119, 242, 0.08);
  aspect-ratio: 16/9;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: riseIn 0.8s 0.42s ease both;
}

.hero-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-screenshot .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 15, 30, 0.7) 100%);
}

/* ════════════════════ SECTION COMMON ════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 54px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 14px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--sky);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
}

.section-desc {
  color: var(--text2);
  margin-top: 12px;
  font-size: 0.96rem;
  line-height: 1.7;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ════════════════════ TOOLS SECTION ════════════════════ */
.tools-section {
  position: relative;
  z-index: 1;
  padding: 80px 5%;
}

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

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

/* ════════════════════ FEATURES ════════════════════ */
.features-section {
  position: relative;
  z-index: 1;
  padding: 80px 5%;
}

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

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

.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: all 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--fb), var(--sky));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(24, 119, 242, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: rgba(24, 119, 242, 0.1);
  border: 1px solid rgba(24, 119, 242, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.feature-name {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.72;
}

/* ════════════════════ HOW IT WORKS ════════════════════ */
.how-section {
  position: relative;
  z-index: 1;
  padding: 80px 5%;
  background: rgba(21, 29, 53, 0.3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner {
  max-width: 900px;
  margin: 0 auto;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}

.how-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0;
  position: relative;
}

.how-step+.how-step {
  border-top: 1px solid var(--border);
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(24, 119, 242, 0.12);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fb-l);
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.74;
}

/* ════════════════════ USE CASES ════════════════════ */
.usecases-section {
  position: relative;
  z-index: 1;
  padding: 80px 5%;
}

.usecases-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.usecase-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.3s;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.usecase-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.usecase-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.usecase-title {
  font-size: 0.96rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}

.usecase-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ════════════════════ TESTIMONIAL ════════════════════ */
.testi-section {
  position: relative;
  z-index: 1;
  padding: 80px 5%;
}

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

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 54px;
}

.testi-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.3s;
}

.testi-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.tc-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.tc-av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--border2);
}

.tc-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-av-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.av1 {
  background: linear-gradient(135deg, #667eea, #764ba2)
}

.av2 {
  background: linear-gradient(135deg, #f093fb, #f5576c)
}

.av3 {
  background: linear-gradient(135deg, #4facfe, #00f2fe)
}

.av4 {
  background: linear-gradient(135deg, #43e97b, #38f9d7)
}

.av5 {
  background: linear-gradient(135deg, #fa709a, #fee140)
}

.av6 {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb)
}

.tc-name {
  font-size: 0.93rem;
  font-weight: 800;
  color: var(--text);
}

.tc-role {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 1px;
}

.tc-date {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--muted);
  margin-left: auto;
  align-self: flex-start;
}

.tc-stars {
  color: #FBBF24;
  font-size: 0.82rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.tc-text {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.74;
}

/* ════════════════════ CTA ════════════════════ */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 72px 5%;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.09) 0%, rgba(56, 189, 248, 0.05) 50%, rgba(249, 115, 22, 0.04) 100%);
  border-top: 1px solid rgba(24, 119, 242, 0.14);
  border-bottom: 1px solid rgba(24, 119, 242, 0.14);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.013) 1px, transparent 1px);
  background-size: 30px 30px;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-top: 14px;
}

.cta-inner p {
  color: var(--text2);
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.72;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ════════════════════ FOOTER ════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 52px 5% 30px;
  position: relative;
  z-index: 1;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}

.f-brand-logo img {
  height: 32px;
  width: auto;
}

.f-brand p {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 14px;
  line-height: 1.72;
  max-width: 280px;
}

.f-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.f-soc {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.f-soc:hover {
  border-color: var(--border2);
  background: var(--bg4);
}

.f-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.f-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.f-col ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s;
}

.f-col ul a:hover {
  color: var(--fb-l);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.80rem;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--fb-l);
}

/* ════════════════════ STATS BAR ════════════════════ */
.stats-bar {
  position: relative;
  z-index: 1;
  padding: 40px 5% 80px;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--fb), var(--sky));
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
}

.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--fb-l);
  display: block;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 7px;
}

.hero-screenshot iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Stats responsive */
@media (max-width: 1024px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .stats-inner { grid-template-columns: 1fr; }
}

/* ════════════════════ ANIMATIONS ════════════════════ */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lang */
[data-lang="vi"] .en-only {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  clip: rect(0, 0, 0, 0) !important;
}

[data-lang="en"] .vi-only {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* ════════════════════ RESPONSIVE ════════════════════ */
@media (max-width:1100px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:900px) {
  .testi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .usecases-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:700px) {
  .nav-links {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .how-step {
    flex-direction: column;
    gap: 16px;
  }
}

/* ════════════════════ MOBILE NAV FIX ════════════════════ */
@media (max-width: 600px) {
  nav {
    height: auto;
    min-height: 56px;
    padding: 10px 4%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-logo img {
    height: 28px;
  }

  .nav-right {
    gap: 8px;
  }

  .nav-signup {
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  /* Lang dropdown button smaller on mobile */
  .lang-current {
    padding: 5px 8px;
  }

  .lang-current img {
    width: 20px;
    height: 14px;
  }

  /* Lang menu: position properly and don't overflow viewport */
  .lang-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 16px 16px 0 0;
    padding: 16px;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    min-width: unset;
    transform: translateY(100%);
    z-index: 9999;
  }

  .lang-menu.show {
    transform: translateY(0);
  }

  .lang-option {
    padding: 10px;
  }

  .lang-option img {
    width: 32px;
    height: 22px;
  }

  /* Lang toggle (simple VI/EN version) */
  .lang-toggle {
    padding: 2px;
  }

  .lang-btn {
    padding: 3px 8px;
    font-size: 0.7rem;
  }

  /* Hero adjustments */
  .hero {
    padding-top: 80px;
  }

  .hero-eyebrow {
    font-size: 0.68rem;
    padding: 4px 14px;
  }

  .hero-h1 {
    letter-spacing: -1px;
  }

  .btn-primary,
  .btn-outline {
    padding: 12px 22px;
    font-size: 0.9rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 420px) {
  nav {
    padding: 8px 3%;
  }

  .nav-signup {
    display: none;
  }

  .nav-logo img {
    height: 26px;
  }
}

/* ═══════════════════════════════════
   LANGUAGE DROPDOWN (ALITA-style)
═══════════════════════════════════ */
.lang-dropdown {
  position: relative;
  z-index: 1000;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text2);
  transition: all 0.2s;
}

.lang-current:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-current img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.lang-current svg {
  opacity: 0.6;
  transition: transform 0.2s;
}

.lang-menu.show + .lang-current svg,
.lang-dropdown:has(.lang-menu.show) .lang-current svg {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.lang-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.lang-option.active {
  background: rgba(24, 119, 242, 0.15);
  border-color: var(--fb);
  box-shadow: 0 0 8px rgba(24, 119, 242, 0.2);
}

.lang-option img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}

.lang-option:hover img {
  transform: scale(1.1);
}

/* Hide Google Translate toolbar */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.skiptranslate { display: none !important; }

/* ═══════════════════════════════════
   SOCIAL PROOF POPUP
═══════════════════════════════════ */
.sp-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #fff;
  color: #1a1a2e;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  transform: translateX(-120%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: 4px solid #22C55E;
}

.sp-popup.show {
  transform: translateX(0);
  opacity: 1;
}

.sp-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.sp-content {
  flex: 1;
  min-width: 0;
}

.sp-name {
  font-size: 13px;
  line-height: 1.3;
  color: #1a1a2e;
}

.sp-name strong {
  font-weight: 700;
  color: #0f0f1a;
}

.sp-title {
  color: #666;
  font-weight: 400;
}

.sp-action {
  font-size: 12.5px;
  color: #444;
  line-height: 1.4;
  margin-top: 3px;
}

.sp-action b {
  color: #1877F2;
  font-weight: 600;
}

.sp-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 11px;
}

.sp-verified {
  color: #22C55E;
  font-weight: 600;
}

.sp-time {
  color: #999;
}

.sp-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s;
}

.sp-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #333;
}

@media (max-width: 480px) {
  .sp-popup {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}