/* Homepage visual polish only. Keep behavior in existing scripts unchanged. */
:root {
  --hy-brand: #ff4785;
  --hy-brand-dark: #d93067;
  --hy-coral: #ff7a59;
  --hy-teal: #10b3a3;
  --hy-ink: #172033;
  --hy-muted: #5f6b7d;
  --hy-soft: #f7f9fc;
  --hy-line: rgba(23, 32, 51, 0.1);
  --hy-shadow: 0 18px 46px rgba(23, 32, 51, 0.1);
  --hy-shadow-soft: 0 10px 28px rgba(23, 32, 51, 0.08);
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  color: var(--hy-ink);
  background:
    linear-gradient(180deg, #fff 0%, #f8fbff 36%, #fff7fa 72%, #fff 100%) !important;
  letter-spacing: 0;
}

#main-nav {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.06);
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

#main-nav a,
#main-nav button,
body > section h1,
body > section h2,
body > section h3,
body > section p,
body > section span {
  letter-spacing: 0 !important;
}

#main-nav .max-w-7xl {
  max-width: 1180px;
}

#main-nav a[href="/"] span {
  background: linear-gradient(135deg, var(--hy-ink), var(--hy-brand-dark)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

#main-nav .hidden.md\:flex.items-center.space-x-1 {
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.84);
  border: 1px solid rgba(23, 32, 51, 0.06);
}

#main-nav .hidden.md\:flex.items-center.space-x-1 a {
  border-radius: 999px;
  padding: 9px 14px !important;
  color: #475569 !important;
}

#main-nav .hidden.md\:flex.items-center.space-x-1 a:hover,
#main-nav .hidden.md\:flex.items-center.space-x-1 a:first-child {
  background: #ffffff;
  color: var(--hy-brand-dark) !important;
  box-shadow: 0 6px 16px rgba(23, 32, 51, 0.08);
}

.btn-login-index {
  min-height: 40px;
  border-color: rgba(255, 71, 133, 0.55) !important;
  box-shadow: 0 10px 22px rgba(255, 71, 133, 0.12) !important;
}

body > section {
  position: relative;
}

body > section:nth-of-type(1) {
  padding-top: 108px !important;
  padding-bottom: 40px !important;
  background:
    linear-gradient(135deg, #ffffff 0%, #f7fbff 48%, #fff4f8 100%) !important;
}

body > section:nth-of-type(1)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 71, 133, 0.28), transparent);
}

body > section:nth-of-type(1) .max-w-7xl {
  max-width: 1180px;
}

body > section:nth-of-type(1) h1 {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px !important;
  font-size: 48px !important;
  line-height: 1.08 !important;
  color: #101828 !important;
}

body > section:nth-of-type(1) > .max-w-7xl > .text-center {
  margin-bottom: 34px !important;
}

.hero-gradient-text {
  background: linear-gradient(135deg, var(--hy-brand-dark) 0%, var(--hy-coral) 54%, var(--hy-teal) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

body > section:nth-of-type(1) h1 + p {
  max-width: 760px !important;
  color: var(--hy-muted) !important;
  font-size: 17px !important;
  line-height: 1.62 !important;
}

body > section:nth-of-type(1) .lg\:w-\[45\%\] {
  padding: 22px 24px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--hy-shadow-soft);
  backdrop-filter: blur(14px);
}

body > section:nth-of-type(1) .lg\:w-\[45\%\] h2 {
  color: var(--hy-ink) !important;
  font-size: 31px !important;
  line-height: 1.16 !important;
  margin-bottom: 10px !important;
}

body > section:nth-of-type(1) .lg\:w-\[45\%\] h3 {
  color: var(--hy-brand-dark) !important;
  font-size: 18px !important;
  margin-bottom: 10px !important;
}

body > section:nth-of-type(1) .lg\:w-\[45\%\] > p {
  margin-bottom: 20px !important;
}

body > section:nth-of-type(1) .platform-icon-wrap {
  width: 54px;
}

body > section:nth-of-type(1) .platform-icon-wrap > div:first-child {
  width: 48px !important;
  height: 48px !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.12) !important;
}

body > section:nth-of-type(1) .platform-glow {
  opacity: 0.18 !important;
}

body > section:nth-of-type(1) button {
  border-radius: 999px !important;
  padding: 12px 26px !important;
}

body > section:nth-of-type(1) button[onclick*="handleFreeTrialClick"] {
  background: linear-gradient(135deg, var(--hy-brand) 0%, var(--hy-coral) 100%) !important;
  box-shadow: 0 16px 30px rgba(255, 71, 133, 0.26) !important;
}

body > section:nth-of-type(1) button[onclick*="openConsultationModal"] {
  border-color: rgba(23, 32, 51, 0.12) !important;
  color: var(--hy-ink) !important;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
}

body > section:nth-of-type(1) button:hover {
  transform: translateY(-2px) !important;
}

body > section:nth-of-type(1) .lg\:w-\[40\%\] {
  max-width: 430px;
}

#hero-illustration,
.hero-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    0 24px 60px rgba(23, 32, 51, 0.16),
    0 8px 20px rgba(255, 71, 133, 0.1) !important;
}

body > section:nth-of-type(2) {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(23, 32, 51, 0.08) !important;
}

body > section:nth-of-type(2) p {
  color: #738096 !important;
}

body > section:nth-of-type(2) span {
  color: #8a94a6 !important;
  opacity: 1;
}

body > section:nth-of-type(3),
body > section:nth-of-type(4),
body > section:nth-of-type(7) {
  background: var(--hy-soft) !important;
}

body > section:nth-of-type(3) .text-center > span,
body > section:nth-of-type(4) .text-center > span,
body > section:nth-of-type(7) .text-center > span {
  border: 1px solid rgba(255, 71, 133, 0.16);
  background: rgba(255, 255, 255, 0.8) !important;
  color: var(--hy-brand-dark) !important;
  box-shadow: 0 8px 18px rgba(255, 71, 133, 0.08);
}

body > section:nth-of-type(3) h2,
body > section:nth-of-type(4) h2,
body > section:nth-of-type(7) h2 {
  color: var(--hy-ink) !important;
}

body > section:nth-of-type(3) .h-1\.5,
body > section:nth-of-type(4) .h-1\.5,
body > section:nth-of-type(7) .h-1\.5 {
  width: 72px !important;
  height: 4px !important;
  background: linear-gradient(90deg, var(--hy-brand), var(--hy-teal)) !important;
}

body > section:nth-of-type(3) .grid > div,
body > section:nth-of-type(4) .grid > div,
body > section:nth-of-type(5) .grid > div,
.faq-item {
  border-radius: 8px !important;
  border: 1px solid rgba(23, 32, 51, 0.08) !important;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.07) !important;
}

body > section:nth-of-type(3) .grid > div,
body > section:nth-of-type(4) .grid > div {
  background: rgba(255, 255, 255, 0.94) !important;
}

body > section:nth-of-type(3) .grid > div:hover,
body > section:nth-of-type(4) .grid > div:hover,
body > section:nth-of-type(5) .grid > div:hover,
.faq-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--hy-shadow) !important;
}

body > section:nth-of-type(3) .grid > div:nth-child(1) > div:first-child {
  background: linear-gradient(135deg, #2f7df6, #12b3bd) !important;
}

body > section:nth-of-type(3) .grid > div:nth-child(2) > div:first-child {
  background: linear-gradient(135deg, var(--hy-brand), var(--hy-coral)) !important;
}

body > section:nth-of-type(3) .grid > div:nth-child(3) > div:first-child {
  background: linear-gradient(135deg, #6d5dfc, var(--hy-teal)) !important;
}

body > section:nth-of-type(4) .grid > div > div:first-child {
  border-radius: 8px !important;
}

body > section:nth-of-type(4) a {
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 71, 133, 0.07);
}

body > section:nth-of-type(5) {
  background:
    linear-gradient(135deg, #111827 0%, #172033 48%, #102d31 100%) !important;
}

body > section:nth-of-type(5) .absolute.top-0.right-0 {
  background: linear-gradient(270deg, rgba(16, 179, 163, 0.18), transparent) !important;
}

body > section:nth-of-type(5) .grid > div {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

body > section:nth-of-type(5) .text-brand-400 {
  color: #ff9ab8 !important;
}

body > section:nth-of-type(6) {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
}

body > section:nth-of-type(6) .bg-slate-900 {
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, #152033 0%, #1d2a42 54%, #12373d 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.2) !important;
}

body > section:nth-of-type(6) .absolute.top-0.right-0 {
  background: rgba(255, 71, 133, 0.2) !important;
}

#home-video-1,
#home-video-2 {
  border-radius: 8px !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-btn {
  min-height: 68px;
}

.faq-content.open {
  padding-bottom: 22px;
}

body > section:nth-of-type(8) .absolute.inset-0:first-child {
  background: linear-gradient(135deg, var(--hy-brand-dark) 0%, var(--hy-coral) 58%, var(--hy-teal) 100%) !important;
}

body > section:nth-of-type(8) a {
  border-radius: 999px !important;
  background: #ffffff !important;
  color: var(--hy-ink) !important;
  border-color: #ffffff !important;
  box-shadow: 0 18px 34px rgba(23, 32, 51, 0.16);
}

footer {
  background: #121a28 !important;
}

footer a:hover {
  color: #ff9ab8 !important;
}

@media (max-width: 1024px) {
  #main-nav .hidden.md\:flex.items-center.space-x-1 {
    display: none !important;
  }

  body > section:nth-of-type(1) h1 {
    font-size: 46px !important;
  }

  body > section:nth-of-type(1) .lg\:w-\[45\%\] {
    width: 100%;
    max-width: 760px;
  }
}

@media (max-width: 768px) {
  #main-nav {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  #mobile-menu {
    border-radius: 0 0 14px 14px;
    box-shadow: 0 20px 40px rgba(23, 32, 51, 0.16) !important;
  }

  body > section:nth-of-type(1) {
    padding-top: 88px !important;
    padding-bottom: 28px !important;
  }

  body > section:nth-of-type(1) h1 {
    font-size: 30px !important;
    line-height: 1.16 !important;
    margin-bottom: 10px !important;
  }

  body > section:nth-of-type(1) h1 + p,
  body > section:nth-of-type(6) p,
  body > section:nth-of-type(8) p {
    font-size: 14px !important;
  }

  body > section:nth-of-type(1) .lg\:w-\[45\%\] {
    padding: 18px;
  }

  body > section:nth-of-type(1) > .max-w-7xl > .text-center {
    margin-bottom: 22px !important;
  }

  body > section:nth-of-type(1) .lg\:w-\[45\%\] h2 {
    font-size: 27px !important;
  }

  body > section:nth-of-type(1) .lg\:w-\[45\%\] h3 {
    font-size: 16px !important;
  }

  body > section:nth-of-type(1) .lg\:w-\[45\%\] > p {
    margin-bottom: 16px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  body > section:nth-of-type(1) .lg\:w-\[45\%\] .flex.flex-wrap.justify-center {
    gap: 10px !important;
    margin-bottom: 18px !important;
  }

  body > section:nth-of-type(1) .platform-icon-wrap {
    width: 46px;
  }

  body > section:nth-of-type(1) .platform-icon-wrap > div:first-child {
    width: 42px !important;
    height: 42px !important;
  }

  body > section:nth-of-type(1) .platform-icon-wrap svg {
    width: 28px !important;
    height: 28px !important;
  }

  body > section:nth-of-type(1) .platform-icon-wrap span {
    font-size: 11px !important;
  }

  body > section:nth-of-type(1) .lg\:w-\[40\%\] {
    display: none !important;
  }

  body > section:nth-of-type(1) .lg\:w-\[45\%\] .flex.flex-wrap.justify-center.lg\:justify-start.gap-4:last-child {
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }

  body > section:nth-of-type(1) button {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 12px !important;
    font-size: 14px !important;
  }

  body > section:nth-of-type(2),
  body > section:nth-of-type(3),
  body > section:nth-of-type(4),
  body > section:nth-of-type(5),
  body > section:nth-of-type(6),
  body > section:nth-of-type(7),
  body > section:nth-of-type(8) {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  body > section:nth-of-type(6) .bg-slate-900 {
    padding: 28px !important;
  }

  #home-video-1,
  #home-video-2 {
    transform: none !important;
  }
}

@media (max-width: 480px) {
  body > section:nth-of-type(1) h1 {
    font-size: 29px !important;
  }

  body > section:nth-of-type(6) a,
  body > section:nth-of-type(8) a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  body > section:nth-of-type(3) .grid > div,
  body > section:nth-of-type(4) .grid > div,
  body > section:nth-of-type(5) .grid > div {
    padding: 24px !important;
  }
}
