/* Premium SaaS landing — hero (templates/index.html) */

:root {
  --lp-primary: #16a34a;
  --lp-secondary: #22c55e;
  --lp-dark: #062a1b;
  --lp-bg: #f8fcf9;
  --lp-text: #0f172a;
  --lp-muted: #64748b;
  --lp-radius: 24px;
  --lp-font: var(--font-family);
}

.lp-hero {
  font-family: var(--lp-font);
}

/* ── Hero ── */
.lp-hero {
  position: relative;
  overflow: hidden;
  background: var(--lp-bg);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  width: 100%;
  max-width: 100%;
}

.lp-hero__bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lp-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: lpOrbFloat 18s ease-in-out infinite alternate;
}

.lp-hero__orb--1 {
  width: min(520px, 60vw);
  height: min(520px, 60vw);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35), transparent 70%);
}

.lp-hero__orb--2 {
  width: min(420px, 50vw);
  height: min(420px, 50vw);
  bottom: -18%;
  right: -6%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.28), transparent 72%);
  animation-delay: -6s;
}

.lp-hero__grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--lp-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--lp-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.lp-hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  width: 100%;
  min-width: 0;
}

.lp-hero__content {
  max-width: 560px;
  min-width: 0;
}

.lp-hero__badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lp-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 163, 74, 0.18);
  box-shadow: 0 8px 24px rgba(6, 42, 27, 0.06);
  backdrop-filter: blur(12px);
  animation: lpFadeUp 0.7s ease both;
}

.lp-hero__badge-line {
  line-height: 1.35;
  white-space: nowrap;
}

.lp-hero__badge-count {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lp-primary);
  white-space: nowrap;
}

.lp-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 4.8vw, 3.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--lp-text);
  animation: lpFadeUp 0.7s ease 0.08s both;
}

.lp-gradient-text {
  background: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-hero__subtitle {
  margin: 0 0 2rem;
  max-width: 480px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  color: var(--lp-muted);
  animation: lpFadeUp 0.7s ease 0.16s both;
}

.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  animation: lpFadeUp 0.7s ease 0.24s both;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--lp-radius);
  font-family: var(--lp-font);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.lp-btn:hover {
  transform: translateY(-2px);
}

.lp-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-secondary));
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.32);
}

.lp-btn--primary:hover {
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.4);
}

.lp-btn--secondary {
  color: var(--lp-text);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 24px rgba(6, 42, 27, 0.06);
  backdrop-filter: blur(10px);
}

.lp-btn--secondary:hover {
  border-color: rgba(22, 163, 74, 0.25);
  box-shadow: 0 12px 28px rgba(6, 42, 27, 0.1);
}

.lp-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lp-hero__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  animation: lpFadeUp 0.7s ease 0.32s both;
}

.lp-hero__stores a {
  display: block;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.lp-hero__stores a:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.lp-hero__stores img {
  height: 80px;
  width: auto;
  display: block;
}

.lp-hero__visual {
  position: relative;
  animation: lpFadeUp 0.85s ease 0.2s both;
}

.lp-hero__map-glow {
  display: none;
}

.lp-hero__map {
  position: relative;
  z-index: 1;
  width: 100%;
}

.lp-showcase {
  padding: clamp(0.4rem, 1.2vw, 0.75rem) 0 clamp(0.55rem, 1.4vw, 0.9rem);
  background: linear-gradient(180deg, var(--lp-bg) 0%, #ffffff 100%);
}

.lp-showcase__container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 2vw, 1.25rem);
}

.lp-showcase__card {
  border-radius: var(--lp-radius);
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
}

.lp-showcase__image {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Demo request modal ── */
.lp-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lp-demo-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lp-demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 42, 27, 0.55);
  backdrop-filter: blur(6px);
}

.lp-demo-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--lp-radius);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(22, 163, 74, 0.15);
  box-shadow: 0 28px 64px rgba(6, 42, 27, 0.22);
}

.lp-demo-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(6, 42, 27, 0.06);
  color: var(--lp-text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.lp-demo-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lp-text);
}

.lp-demo-modal__subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--lp-muted);
}

.lp-demo-form {
  display: grid;
  gap: 0.9rem;
}

.lp-demo-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lp-demo-form__field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lp-text);
}

.lp-demo-form__field input,
.lp-demo-form__field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  font: inherit;
  color: var(--lp-text);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-demo-form__field input:focus,
.lp-demo-form__field textarea:focus {
  outline: none;
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.lp-demo-form__field textarea {
  resize: vertical;
  min-height: 88px;
}

.lp-demo-form__error {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #dc2626;
}

.lp-demo-form__success {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lp-primary);
}

.lp-demo-form__submit {
  width: 100%;
  margin-top: 0.25rem;
}

@keyframes lpFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lpOrbFloat {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(12px, -18px) scale(1.06);
  }
}

@media (min-width: 1025px) {
  .navbar-end {
    display: flex !important;
  }
}

@media (max-width: 1100px) {
  .lp-hero__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lp-hero__content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .lp-hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .lp-hero__actions,
  .lp-hero__stores {
    justify-content: center;
  }

  .lp-hero__badge {
    justify-content: center;
  }

  .lp-hero__visual {
    max-width: min(640px, 100%);
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .lp-hero__title {
    font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  }
}

@media (max-width: 640px) {
  .lp-hero {
    padding: 1.75rem 0 2.25rem;
  }

  .lp-hero__container {
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .lp-hero__badge-line {
    white-space: normal;
  }

  .lp-hero__title {
    font-size: clamp(1.6rem, 7.5vw, 2.15rem);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .lp-hero__subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.35rem;
  }

  .lp-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .lp-hero__actions .lp-btn {
    width: 100%;
  }

  .lp-hero__stores {
    justify-content: center;
  }

  .lp-hero__stores img {
    height: 80px;
  }
}

@media (max-width: 768px) {
  .lp-showcase {
    padding: 1rem 0 2rem;
  }

  .lp-showcase__card {
    border-radius: 18px;
  }

  .lp-hero__stores img {
    height: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero__badge,
  .lp-hero__title,
  .lp-hero__subtitle,
  .lp-hero__actions,
  .lp-hero__stores,
  .lp-hero__visual,
  .lp-hero__orb {
    animation: none !important;
  }

  .lp-btn:hover {
    transform: none;
  }
}

/* Tamil UI — slightly smaller type; map stats and English-only UI unchanged */
html[lang="ta"] .lp-hero__title {
  font-size: clamp(1.9rem, 4.1vw, 3.15rem);
}

html[lang="ta"] .lp-hero__subtitle {
  font-size: clamp(0.9rem, 1.45vw, 1rem);
}

html[lang="ta"] .lp-hero__badge-line {
  font-size: 0.74rem;
}

html[lang="ta"] .lp-btn {
  font-size: 0.86rem;
}

html[lang="ta"] .lp-demo-modal__title {
  font-size: 1.2rem;
}

html[lang="ta"] .lp-demo-modal__subtitle {
  font-size: 0.88rem;
}

html[lang="ta"] .navbar-nav a[data-lang] {
  font-size: calc(var(--font-size-sm) * 0.92);
}

html[lang="ta"] .navbar-login[data-lang] {
  font-size: 0.78rem !important;
}

html[lang="ta"] h2.section-title[data-lang],
html[lang="ta"] .partners-section .section-title[data-lang] {
  font-size: calc(var(--font-size-4xl) * 0.88);
}

html[lang="ta"] .section-label[data-lang] {
  font-size: calc(var(--font-size-sm) * 0.92);
}

html[lang="ta"] .section-description[data-lang],
html[lang="ta"] p[data-lang="about-desc"] {
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

html[lang="ta"] h3[data-lang],
html[lang="ta"] h4[data-lang] {
  font-size: calc(1em * 0.9);
}

html[lang="ta"] #services h3[data-lang] {
  font-size: calc(var(--font-size-2xl) * 0.88);
}

html[lang="ta"] #services li[data-lang],
html[lang="ta"] .feature-section .card h3[data-lang],
html[lang="ta"] .feature-section .card p[data-lang] {
  font-size: 0.92rem;
}

html[lang="ta"] h2[data-lang="cta-start"],
html[lang="ta"] h2[data-lang="cta-free"] {
  font-size: 1.55rem !important;
}

html[lang="ta"] p[data-lang="cta-desc"] {
  font-size: 0.95rem !important;
}

html[lang="ta"] span[data-lang="download-app"] {
  font-size: 0.82rem !important;
}

html[lang="ta"] h3[data-lang="team-name"] {
  font-size: 1.15rem !important;
}

html[lang="ta"] p[data-lang="team-title-text"] {
  font-size: 0.82rem !important;
}

html[lang="ta"] p[data-lang="team-value"] {
  font-size: 0.78rem !important;
}

html[lang="ta"] p[data-lang="team-bio"],
html[lang="ta"] p[data-lang="mission-text"] {
  font-size: 0.82rem !important;
}

html[lang="ta"] h4[data-lang="team-vision-label"] {
  font-size: 0.74rem !important;
}

html[lang="ta"] h3[data-lang="mission-title"],
html[lang="ta"] h3[data-lang="vision-title"] {
  font-size: 0.92rem !important;
}

html[lang="ta"] .footer-column [data-lang] {
  font-size: 0.92em;
}
