:root {
  /* Appure theme-3 (đo từ trình duyệt) */
  --primary: #0f6eff;
  --primary-dark: #0d5ed9;
  --primary-soft: #e8f1ff;
  --text: #1c1b2e;
  --text-muted: #6d859e;
  --bg: #f6f9fc;
  --white: #ffffff;
  --border: #e3e8ef;
  --radius: 5px;
  --shadow: 0 18px 50px rgba(28, 27, 46, 0.08);
  --container: min(1140px, calc(100% - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lexend", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  color: var(--text-muted);
  background: var(--white);
}

body.theme-3 {
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section--soft {
  background: var(--bg);
}

.section__lead {
  max-width: 640px;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
  text-align: center;
}

.section__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.2;
  text-align: center;
  font-weight: 900;
  color: var(--text);
}

.section__title span {
  color: var(--primary);
}

.section__title--left {
  text-align: left;
}

/* Header — header2.sticky Appure */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 0;
  transition: all 0.3s ease;
}

.site-header.is-sticky {
  position: fixed;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a:not(.btn) {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 0.35rem 0;
  transition: color 0.3s ease;
}

.site-nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  padding: 23px 35px;
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--ghost {
  padding: 20px 35px;
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn--ghost:hover {
  background: var(--primary-soft);
}

.site-nav .btn--primary {
  padding: 14px 24px;
  font-size: 16px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* Hero — welcome_area.primary_bg */
.hero {
  position: relative;
  padding: 150px 0 100px;
  background: var(--bg);
  overflow: hidden;
}

.hero__mesh {
  pointer-events: none;
  position: absolute;
  width: 120px;
  height: 120px;
  z-index: 1;
}

.hero__mesh--tl {
  top: 18%;
  left: 8%;
}

.hero__mesh--br {
  bottom: 12%;
  right: 42%;
}

.hero__mesh .circle {
  width: 30px;
  height: 30px;
  position: absolute;
  background: var(--primary);
  border-radius: 50%;
  margin: -15px;
  animation: mesh 3s ease-in-out infinite -1.5s;
}

.hero__mesh .circle:last-child {
  animation-delay: 0s;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__eyebrow {
  margin: 10px 0 0;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 40px;
  color: var(--text-muted);
  max-width: 520px;
}

.hero__title {
  margin: 0;
  font-size: clamp(40px, 6vw, 90px);
  line-height: 1;
  font-weight: 900;
  color: var(--text);
}

.hero__title .title-accent {
  color: var(--primary);
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__media {
  position: relative;
  z-index: 2;
}

.hero__media-wrap {
  position: relative;
}

.hero__media img {
  margin-inline: auto;
  filter: drop-shadow(var(--shadow));
}

/* Promo blocks (carousel-like) */
.promo {
  padding: 4rem 0;
}

.promo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.promo__grid--reverse .promo__content {
  order: 2;
}

.promo__grid--reverse .promo__media {
  order: 1;
}

.promo__title {
  margin: 0 0 1rem;
  font-size: clamp(30px, 3.5vw, 50px);
  line-height: 1.2;
  font-weight: 900;
  color: var(--text);
}

.promo__text {
  margin: 0;
  color: var(--text-muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.step-card__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text);
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Stats + preview */
.preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.stat__value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat__label {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--white);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Testimonials */
.testimonials {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.testimonial__stars {
  color: #f59e0b;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.testimonial__quote {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.testimonial__author {
  font-weight: 700;
  color: var(--text);
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item__question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.15rem 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
}

.faq-item__answer {
  display: none;
  padding: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.is-open .faq-item__answer {
  display: block;
}

.faq-item__icon {
  color: var(--primary);
  flex-shrink: 0;
}

/* CTA + trial */
.cta-box {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.trial-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.trial-form input {
  min-width: min(320px, 100%);
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 18px;
  font-family: inherit;
}

.trial-form input:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
}

.trial-form__note {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.site-footer h3 {
  color: var(--white);
  margin: 0 0 1rem;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.5rem;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer__brand p {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  max-width: 320px;
}

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}

.socials {
  display: flex;
  gap: 0.75rem;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.socials a:hover {
  background: var(--primary);
  color: var(--white);
}

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
  margin-top: 2rem;
}

.brand-strip img {
  height: 28px;
  width: auto;
  filter: grayscale(1);
}

@media (max-width: 992px) {
  .hero__grid,
  .promo__grid,
  .preview,
  .steps,
  .features-grid,
  .testimonials,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .promo__grid--reverse .promo__content,
  .promo__grid--reverse .promo__media {
    order: unset;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header__inner {
    position: relative;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero__mesh {
    display: none;
  }
}
