/* Payhay marketing site — shared stylesheet (EN + VI) */

:root {
  --bg: #0c0a1f;
  --bg-soft: #14112b;
  --ink: #f4f2fb;
  --ink-dim: #b9b3d6;
  --ink-faint: #8781a8;
  --violet: #7c5cff;
  --violet-2: #b083ff;
  --indigo: #4338ca;
  --gold: #ffb648;
  --green: #34d399;
  --red: #ff6b6b;
  --card: #231e55;
  --card-border: #2c2752;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-w: 1120px;
  --shadow-glow: 0 30px 80px -20px rgba(124, 92, 255, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 40px);
  padding-right: clamp(20px, 5vw, 40px);
}

/* Background ambience */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px circle at 15% 0%, rgba(124, 92, 255, 0.35), transparent 60%),
    radial-gradient(500px circle at 90% 15%, rgba(176, 131, 255, 0.25), transparent 55%),
    radial-gradient(700px circle at 50% 100%, rgba(67, 56, 202, 0.3), transparent 60%);
}

main, header, footer { position: relative; z-index: 1; }

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 40px) 0;
  max-width: var(--max-w);
  margin: 0 auto;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.wordmark .mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 20px -6px rgba(124, 92, 255, 0.7);
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-dim);
}

.lang-switch a.active {
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  color: #fff;
}

/* Hero */
.hero {
  padding-top: clamp(40px, 8vw, 60px);
  padding-bottom: clamp(30px, 6vw, 30px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

/* Desktop: CTA lives inline right after the lede, in the same column as the
   copy. Mobile: that inline copy is hidden and a second CTA block (placed
   after the phone mockup in the DOM) is shown instead, so the button sits
   below the phone on small screens without breaking desktop row sizing. */
.hero-cta.mobile-only { display: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-cta.desktop-only { display: none; }
  .hero-cta.mobile-only {
    display: block;
    text-align: center;
  }
  .hero-cta.mobile-only .cta-row { justify-content: center; }
  .hero-cta.mobile-only .trust-line { max-width: 40ch; margin-inline: auto; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 182, 72, 0.4);
  background: rgba(255, 182, 72, 0.08);
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.badge svg { width: 20px; height: 20px; flex: none; }

h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 800;
}

@media (max-width: 860px) {
  h1 { margin-bottom: 10px; }
}

h1 .accent {
  background: linear-gradient(120deg, var(--violet-2), var(--violet) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--ink-dim);
  max-width: 46ch;
  margin: 0 0 30px;
}

@media (max-width: 860px) {
  .lede { margin-bottom: 15px; }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 34px 90px -18px rgba(124, 92, 255, 0.6); }
.btn-primary svg { width: 20px; height: 20px; flex: none; }
.btn-primary img { width: 22px; height: 22px; flex: none; }

.trust-line {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* Phone mockup */
.phone-stage {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone {
  width: min(300px, 78vw);
  aspect-ratio: 9 / 18;
  background: #050414;
  border-radius: 46px;
  border: 3px solid #2b2650;
  box-shadow: var(--shadow-glow), inset 0 0 0 8px #0a0820;
  position: relative;
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(2deg);
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 18px;
  background: #050414;
  border-radius: 12px;
  z-index: 5;
}

.phone-screen {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #f6f4ff, #ece8ff);
  padding: 46px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.notif-card, .app-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px -10px rgba(20, 10, 60, 0.25);
  opacity: 0;
  transform: translateY(14px);
  color: #201c3a;
}

.notif-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: popIn 6s infinite;
}

.notif-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #2255dd;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex: none;
}

.notif-body { font-size: 0.72rem; }
.notif-body .t { font-weight: 700; margin-bottom: 2px; display: flex; justify-content: space-between; gap: 6px; }
.notif-body .amt { color: var(--red); font-weight: 700; }

.ai-chip {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  animation: chipPulse 6s infinite;
  letter-spacing: 0.04em;
}

.ai-chip svg { width: 13px; height: 13px; }

.app-card {
  animation: cardIn 6s infinite;
  font-size: 0.75rem;
}

.app-card .row1 { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 4px; }
.app-card .amt-neg { color: var(--violet); font-weight: 800; }
.app-card .row2 { display: flex; justify-content: space-between; color: #8781a8; font-size: 0.68rem; }
.app-card .saved { color: var(--green); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.app-card .saved svg { width: 12px; height: 12px; }

@keyframes popIn {
  0%, 6% { opacity: 0; transform: translateY(14px); }
  14%, 46% { opacity: 1; transform: translateY(0); }
  56%, 100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes chipPulse {
  0%, 20% { opacity: 0; transform: scale(0.8); }
  30%, 60% { opacity: 1; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(0.9); }
}

@keyframes cardIn {
  0%, 44% { opacity: 0; transform: translateY(16px); }
  56%, 90% { opacity: 1; transform: translateY(0); }
  98%, 100% { opacity: 0; transform: translateY(-6px); }
}

/* Sections */
section {
  padding-top: clamp(10px, 2vw, 20px);
  padding-bottom: clamp(10px, 2vw, 20px);
}

@media (min-width: 861px) {
  .privacy-section { padding-top: 15px; }
  .final-cta-section { padding-top: 10px; padding-bottom: 10px; }
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--violet-2);
  margin: 0 0 10px;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  font-weight: 800;
  line-height: 45px;
}

@media (max-width: 860px) {
  h2 { margin-bottom: 6px; line-height: 30px; }
  .setup-section h2 { margin-bottom: 15px; }
}

.section-sub {
  color: var(--ink-dim);
  max-width: 60ch;
  margin: 0 0 20px;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .steps-grid { grid-template-columns: 1fr; }
  .steps-sub { margin-bottom: 12px; }
  .steps-grid-mobile-gap { gap: 14px; }
}

.step-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  position: relative;
}

@media (max-width: 860px) {
  .step-card { padding: 20px; }
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.4rem;
  flex: none;
}

.step-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.step-icon svg { width: 24px; height: 24px; color: var(--violet-2); }

.step-card h3 {
  margin: 0 0 0px;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.92rem;
}

/* Setup notice */
.setup-banner {
  background: linear-gradient(135deg, rgba(255, 182, 72, 0.12), rgba(124, 92, 255, 0.08));
  border: 1px solid rgba(255, 182, 72, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.setup-banner svg { width: 26px; height: 26px; color: var(--gold); flex: none; margin-top: 2px; }
.setup-banner strong { display: block; margin-bottom: 4px; }
.setup-banner p { margin: 0; color: var(--ink-dim); font-size: 0.92rem; }

@media (max-width: 860px) {
  .setup-section { margin-top: 15px; }
  .setup-banner { margin-bottom: 14px; }
  .setup-strip { gap: 14px; }
}

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

@media (max-width: 760px) {
  .setup-strip { grid-template-columns: 1fr; }
}

.setup-shot {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.setup-shot .frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--card-border);
}

.setup-shot .tag {
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--violet-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.setup-shot p { margin: 0; font-size: 0.88rem; color: var(--ink-dim); }

/* Demo section */
.demo-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(24px, 5vw, 50px);
  align-items: center;
}

@media (max-width: 860px) {
  .demo-layout { grid-template-columns: 1fr; }
}

.video-frame {
  border-radius: 34px;
  border: 3px solid #2b2650;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  background: #000;
}

.video-frame video { width: 100%; display: block; }

.feature-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 15px; }

.feature-list li { display: flex; gap: 14px; align-items: flex-start; }

.feature-list .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.feature-list .ico svg { width: 20px; height: 20px; color: var(--violet-2); }

.feature-list .txt strong { display: block; margin-bottom: 2px; font-size: 0.98rem; }
.feature-list .txt span { color: var(--ink-dim); font-size: 0.88rem; }

/* Privacy */
.privacy-card {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(67, 56, 202, 0.08));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 760px) {
  .privacy-card { grid-template-columns: 1fr; }
}

.privacy-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 15px; align-content: start; }

.privacy-grid li { display: flex; gap: 12px; }

.privacy-grid .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.privacy-grid .ico svg { width: 20px; height: 20px; color: var(--green); }

.privacy-grid strong { display: block; margin-bottom: 2px; font-size: 0.95rem; }
.privacy-grid span { color: var(--ink-dim); font-size: 0.87rem; }

.privacy-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield {
  width: min(220px, 60vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 182, 72, 0.5), rgba(10, 8, 32, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 182, 72, 1);
}

.shield svg { width: 46%; height: 46%; color: var(--gold); }

/* Final CTA */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(67, 56, 202, 0.14));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 8vw, 70px) clamp(20px, 6vw, 60px);
}

.final-cta h2 { margin-bottom: 10px; }
.final-cta .section-sub { margin: 0 auto 28px; }

footer {
  padding: 34px clamp(20px, 5vw, 40px) 50px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

footer .foot-links { display: flex; gap: 18px; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .notif-card, .ai-chip, .app-card { animation: none; opacity: 1; transform: none; }
}
