/* Public landing page (/). Standalone styling — does not share the
 * workarea / textarea / history layout from main.css. All classes are
 * prefixed `lp-` so they don't collide with the workspace CSS when
 * both pages live behind the same domain.
 *
 * Color palette pulled from the Vietex logo:
 *   Navy   #1e40af  ← brand primary, "Vietex" word
 *   Orange #f97316  ← brand accent, "ex" + sound waves
 *   Teal   #0f766e  ← tagline + sound wave dark
 */

:root {
  --navy: #1e40af;
  --navy-dark: #1e3a8a;
  --navy-soft: #eef2ff;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-soft: #fff7ed;
  --teal: #0f766e;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
}

/* Reset margins on body + tighten line-height for marketing-feel. */
body { margin: 0; }

/* ──────────────── TOPBAR ──────────────── */

.lp-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.lp-topbar__brand img { display: block; height: 40px; width: auto; }
.lp-topbar__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  margin-left: 32px;
}
.lp-topbar__nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.lp-topbar__nav a:hover { color: var(--navy); }
.lp-topbar__cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lp-topbar__login {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.lp-topbar__login:hover { color: var(--navy); }

@media (max-width: 720px) {
  .lp-topbar { padding: 12px 16px; }
  .lp-topbar__nav { display: none; }
}

/* ──────────────── BUTTONS ──────────────── */

.btn--lg {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn--outline:hover { background: var(--navy-soft); }

.lp-topbar .btn--primary,
.lp-hero .btn--primary,
.lp-voices .btn--primary,
.lp-cta .btn--primary {
  background: var(--navy);
}
.lp-topbar .btn--primary:hover,
.lp-hero .btn--primary:hover,
.lp-voices .btn--primary:hover { background: var(--navy-dark); }

/* ──────────────── HERO — asymmetric 2-column ──────────────── */

.lp-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 88px 64px 96px;
  max-width: 1280px;
  margin: 0 auto;
  background: linear-gradient(180deg,
    var(--navy-soft) 0%,
    rgba(255, 247, 237, 0.4) 60%,
    #ffffff 100%);
}
.lp-hero__content { max-width: 620px; }

.lp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.lp-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
  animation: lp-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes lp-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.06); }
}

.lp-hero__title {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--gray-900);
  letter-spacing: -0.025em;
}
.lp-hero__title-accent {
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.lp-hero__sub {
  font-size: 17px;
  color: var(--gray-600);
  margin: 0 0 32px;
  line-height: 1.7;
}
.lp-hero__sub strong { color: var(--gray-900); }

.lp-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.lp-hero__cta-arrow { transition: transform 0.2s; }
.lp-hero__cta .btn:hover .lp-hero__cta-arrow { transform: translateX(3px); }

.lp-hero__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  font-size: 13px;
  color: var(--gray-600);
}
.lp-hero__trust li { display: flex; align-items: center; gap: 6px; }
.lp-hero__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

/* ──────────────── HERO VISUAL ──────────────── */
/* Animated stylised waveform (CSS-only) — unique visual identity that
 * vivibe doesn't have. Floating use-case chips above the wave reinforce
 * the multi-purpose narrative. */
.lp-hero__visual {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-hero__waveform {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 200px;
  padding: 24px 32px;
  background: linear-gradient(135deg, var(--navy) 0%, #4f46e5 100%);
  border-radius: 24px;
  box-shadow: 0 30px 60px -20px rgba(30, 64, 175, 0.45);
  position: relative;
  overflow: hidden;
}
.lp-hero__waveform::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(249, 115, 22, 0.25), transparent 60%);
  pointer-events: none;
}
.lp-hero__waveform span {
  display: block;
  width: 6px;
  background: linear-gradient(180deg, #fff 0%, var(--orange) 100%);
  border-radius: 999px;
  animation: lp-wave 1.6s ease-in-out infinite;
}
.lp-hero__waveform span:nth-child(1)  { height: 22%;  animation-delay: 0.0s; }
.lp-hero__waveform span:nth-child(2)  { height: 50%;  animation-delay: 0.1s; }
.lp-hero__waveform span:nth-child(3)  { height: 80%;  animation-delay: 0.2s; }
.lp-hero__waveform span:nth-child(4)  { height: 65%;  animation-delay: 0.3s; }
.lp-hero__waveform span:nth-child(5)  { height: 35%;  animation-delay: 0.4s; }
.lp-hero__waveform span:nth-child(6)  { height: 70%;  animation-delay: 0.5s; }
.lp-hero__waveform span:nth-child(7)  { height: 90%;  animation-delay: 0.6s; }
.lp-hero__waveform span:nth-child(8)  { height: 55%;  animation-delay: 0.7s; }
.lp-hero__waveform span:nth-child(9)  { height: 30%;  animation-delay: 0.8s; }
.lp-hero__waveform span:nth-child(10) { height: 60%;  animation-delay: 0.9s; }
.lp-hero__waveform span:nth-child(11) { height: 85%;  animation-delay: 1.0s; }
.lp-hero__waveform span:nth-child(12) { height: 45%;  animation-delay: 1.1s; }
.lp-hero__waveform span:nth-child(13) { height: 75%;  animation-delay: 1.2s; }
.lp-hero__waveform span:nth-child(14) { height: 25%;  animation-delay: 1.3s; }
.lp-hero__waveform span:nth-child(15) { height: 55%;  animation-delay: 1.4s; }

@keyframes lp-wave {
  0%, 100% { transform: scaleY(0.3); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

.lp-hero__chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  animation: lp-chip-float 5s ease-in-out infinite;
}
.lp-hero__chip--top { top: 12px; right: -12px; animation-delay: 0s; }
.lp-hero__chip--mid { left: -32px; top: 45%; animation-delay: 1.5s; }
.lp-hero__chip--bot { bottom: 24px; right: -8px; animation-delay: 3s; }
@keyframes lp-chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 960px) {
  .lp-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 24px 64px;
    text-align: center;
  }
  .lp-hero__content { max-width: 100%; margin: 0 auto; }
  .lp-hero__title { font-size: 36px; }
  .lp-hero__cta { justify-content: center; }
  .lp-hero__trust { grid-template-columns: 1fr; text-align: left; max-width: 360px; margin: 0 auto; }
  .lp-hero__visual { height: 240px; }
  .lp-hero__chip--top { right: 0; }
  .lp-hero__chip--mid { left: 0; top: 50%; }
  .lp-hero__chip--bot { right: 0; }
}

/* ──────────────── STATS ──────────────── */

.lp-stats {
  background: var(--gray-900);
  padding: 48px 24px;
  color: #fff;
}
.lp-stats__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.lp-stat__num {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(90deg, #fff 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.lp-stat__label {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 4px;
}
@media (max-width: 720px) {
  .lp-stats { padding: 32px 16px; }
  .lp-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .lp-stat__num { font-size: 32px; }
}

/* ──────────────── SECTION HEADING ──────────────── */

.lp-section__heading {
  text-align: center;
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.lp-section__heading h2 {
  font-size: 36px;
  margin: 0 0 12px;
  color: var(--gray-900);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lp-section__sub {
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* ──────────────── VOICES ──────────────── */

.lp-voices {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.lp-voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.lp-voices__empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-500);
  border: 2px dashed var(--gray-200);
  border-radius: 12px;
}
.lp-voices__cta { text-align: center; margin-top: 32px; }

.lp-voice {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.lp-voice:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.10);
  transform: translateY(-2px);
}
.lp-voice__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.lp-voice__name {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--gray-900);
  flex: 1;
}
.lp-voice__badges {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.lp-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.lp-badge--gender { background: var(--orange-soft); color: var(--orange-dark); }
.lp-badge--region { background: var(--navy-soft); color: var(--navy); }

.lp-voice__desc {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.lp-voice__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.lp-voice-tag {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
}
.lp-voice__plays {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.lp-play {
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--gray-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.lp-play__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 9px;
  flex-shrink: 0;
}
.lp-play:hover { border-color: var(--navy); color: var(--navy); }
.lp-play[data-state="loading"] { opacity: 0.7; cursor: wait; }
.lp-play[data-state="playing"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.lp-play[data-state="playing"] .lp-play__icon {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.lp-voice__audio { display: none; }

/* ──────────────── HOW IT WORKS ──────────────── */

.lp-how {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-step {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  position: relative;
}
.lp-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--orange) 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}
.lp-step h3 { font-size: 18px; margin: 0 0 8px; color: var(--gray-900); }
.lp-step p { font-size: 14px; color: var(--gray-600); line-height: 1.6; margin: 0; }
@media (max-width: 720px) {
  .lp-steps { grid-template-columns: 1fr; }
}

/* ──────────────── FEATURES — 4 columns × 2 rows ──────────────── */

.lp-features {
  background: var(--gray-50);
  padding: 80px 24px;
}
.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}
.lp-feature {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s, transform 0.2s;
}
.lp-feature:hover {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}
.lp-feature--accent {
  border-color: var(--orange);
  background: linear-gradient(180deg, #fff 0%, var(--orange-soft) 100%);
}
.lp-feature__icon {
  font-size: 26px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy-soft);
}
.lp-feature--accent .lp-feature__icon { background: rgba(249, 115, 22, 0.2); }
.lp-feature h3 { font-size: 16px; margin: 0 0 8px; color: var(--gray-900); }
.lp-feature p { font-size: 13px; color: var(--gray-600); line-height: 1.6; margin: 0; }

@media (max-width: 1100px) {
  .lp-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .lp-feature-grid { grid-template-columns: 1fr; }
}

/* ──────────────── FAQ ──────────────── */

.lp-faq {
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}
.lp-faq-list { display: flex; flex-direction: column; gap: 8px; }
.lp-faq-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color 0.15s;
}
.lp-faq-item[open] { border-color: var(--navy); }
.lp-faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray-900);
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--navy);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.lp-faq-item[open] summary::after { transform: rotate(45deg); }
.lp-faq-item p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
  margin: 12px 0 0;
}

/* ──────────────── FINAL CTA ──────────────── */

.lp-cta {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--navy) 0%, #4f46e5 50%, var(--orange) 200%);
  color: #fff;
}
.lp-cta h2 {
  font-size: 36px;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lp-cta p { font-size: 17px; margin: 0 0 28px; opacity: 0.92; }
.lp-cta .btn--primary {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  font-weight: 700;
}
.lp-cta .btn--primary:hover { background: var(--gray-100); }
.lp-cta__hint {
  margin-top: 16px !important;
  font-size: 13px !important;
  opacity: 0.8;
}

/* ──────────────── FOOTER ──────────────── */

.lp-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 56px 24px 24px;
}
.lp-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 32px;
}
.lp-footer__brand img {
  height: 36px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.lp-footer__brand p { font-size: 13px; margin: 0; }

.lp-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-footer__nav h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0 0 12px;
}
.lp-footer__nav a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
}
.lp-footer__nav a:hover { color: #fff; }

.lp-footer__legal {
  border-top: 1px solid #374151;
  padding-top: 20px;
  font-size: 12px;
  text-align: center;
}
.lp-footer__legal p { margin: 0; }

@media (max-width: 720px) {
  .lp-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .lp-footer__nav { grid-template-columns: 1fr 1fr; }
}
