:root {
  --ink: #161714;
  --muted: #62655e;
  --line: #ded8cb;
  --paper: #fbfaf6;
  --surface: #f1ede3;
  --saffron: #c87525;
  --maroon: #7b2432;
  --green: #2f6046;
  --blue: #315f7b;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(22, 23, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans Malayalam", system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(251, 250, 246, 0.88);
  border-bottom: 1px solid rgba(222, 216, 203, 0.75);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--maroon);
  color: var(--white);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-size: 0.93rem;
  font-weight: 700;
}

.nav-links a,
.nav-cta {
  text-decoration: none;
}

.nav-links a:hover,
.nav-cta:hover {
  color: var(--maroon);
}

.nav-cta {
  border: 1px solid var(--ink);
  border-radius: 0.45rem;
  padding: 0.62rem 0.9rem;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 17, 14, 0.86), rgba(16, 17, 14, 0.48) 48%, rgba(16, 17, 14, 0.18)),
    linear-gradient(0deg, rgba(16, 17, 14, 0.78), rgba(16, 17, 14, 0.1) 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  padding: 8.5rem clamp(1.25rem, 5vw, 4rem) 3.5rem;
}

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

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 6.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-motto {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.11);
  color: var(--white);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-copy {
  max-width: 720px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  padding: 0.78rem 1.08rem;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--saffron);
  color: #241100;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.button.outline {
  border-color: var(--line);
}

.hero-stats {
  width: min(880px, 100%);
  margin: 3.2rem 0 0;
}

.hero-stats div {
  min-width: 150px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  backdrop-filter: blur(14px);
}

.hero-stats dt {
  font-size: 1.25rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 4rem);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading span {
  color: var(--maroon);
}

.intro-grid,
.mission-panel,
.feature-grid,
.plan-grid,
.work-grid,
.launch-grid,
.contact {
  display: grid;
  gap: 1rem;
}

.intro-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mission {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 19, 16, 0.96), rgba(37, 31, 24, 0.88) 52%, rgba(123, 36, 50, 0.74)),
    linear-gradient(0deg, rgba(18, 19, 16, 0.92), rgba(18, 19, 16, 0.44)),
    url("assets/temple-platform-hero.jpg") center / cover;
  color: var(--white);
}

.mission::before {
  position: absolute;
  inset: 1.2rem;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
  content: "";
}

.mission::after {
  position: absolute;
  right: clamp(1.25rem, 5vw, 4rem);
  bottom: clamp(1.25rem, 5vw, 4rem);
  width: min(360px, 40vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 117, 37, 0.9));
  content: "";
}

.mission-panel {
  position: relative;
  z-index: 1;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.mission h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1.02;
  text-wrap: balance;
}

.mission p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
}

.mission p[lang="ml"] {
  color: rgba(255, 255, 255, 0.78);
}

.discount-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border: 1px solid rgba(248, 211, 139, 0.34);
  border-radius: 0.65rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(22, 23, 20, 0.42);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.discount-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 0.32rem;
  background: linear-gradient(90deg, var(--saffron), #f2d28c, var(--green));
  content: "";
}

.discount-card span {
  color: var(--saffron);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.discount-value {
  display: block;
  margin: 1rem 0 0.45rem;
  color: #f6d990;
  font-size: clamp(4.4rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.85;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
}

.discount-card h3 {
  max-width: 360px;
  margin-top: 0.7rem;
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.discount-card p {
  color: rgba(255, 255, 255, 0.78);
}

.intro article,
.feature-item,
.plan-card,
.work-card,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(22, 23, 20, 0.05);
}

.intro article {
  padding: 1.35rem;
}

h3 {
  margin: 0 0 0.55rem;
  line-height: 1.2;
}

h4 {
  margin: -0.25rem 0 0.6rem;
  color: var(--green);
  font-size: 0.95rem;
}

p {
  color: var(--muted);
}

p[lang="ml"] {
  color: #4f534b;
  font-size: 0.96rem;
}

.feature-band {
  background: var(--surface);
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-item {
  min-height: 210px;
  padding: 1.35rem;
}

.feature-item span,
.work-card span,
.plan-label {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.plan-card {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.plan-card.featured {
  border-color: rgba(123, 36, 50, 0.45);
  box-shadow: var(--shadow);
}

.plan-card.support-plan {
  border-color: rgba(47, 96, 70, 0.35);
  background:
    linear-gradient(145deg, rgba(47, 96, 70, 0.08), rgba(255, 255, 255, 0.94)),
    var(--white);
}

.support-plan .plan-label,
.support-plan h3 {
  color: var(--green);
}

.plan-card h3 {
  font-size: 1.8rem;
}

.price {
  margin: 1rem 0 0.1rem;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1;
}

.price span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.monthly {
  margin: 0.45rem 0 1rem;
  color: var(--maroon);
  font-size: 0.92rem;
  font-weight: 800;
}

.discount {
  margin: -0.45rem 0 1rem;
  padding: 0.55rem 0.7rem;
  background: rgba(47, 96, 70, 0.1);
  border: 1px solid rgba(47, 96, 70, 0.22);
  border-radius: 0.45rem;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

.subdomain-offer {
  margin: 0.7rem 0 0.75rem;
  padding: 0.55rem 0.7rem;
  background: rgba(200, 117, 37, 0.12);
  border: 1px solid rgba(200, 117, 37, 0.26);
  border-radius: 0.45rem;
  color: #8b4b12;
  font-size: 0.9rem;
  font-weight: 800;
}

.plan-desc {
  min-height: 3.5rem;
}

.plan-card ul {
  display: grid;
  gap: 0.65rem;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  position: relative;
  padding-left: 1.4rem;
}

.plan-card li::before {
  position: absolute;
  left: 0;
  color: var(--saffron);
  content: "✓";
  font-weight: 800;
}

.policy-box {
  margin-top: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.policy-box p {
  max-width: 940px;
}

.update-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.update-rates span {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.work {
  background: #23231f;
  color: var(--white);
}

.work .section-heading h2 {
  color: var(--white);
}

.work-grid {
  grid-template-columns: repeat(3, 1fr);
}

.work-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 1.35rem;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.work-card::before {
  position: absolute;
  inset: auto -2.5rem -3rem auto;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.work-card::after {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.18);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}

.work-card span,
.work-card h3,
.work-card p {
  position: relative;
  z-index: 1;
}

.work-card p {
  color: rgba(255, 255, 255, 0.68);
}

.work-platform {
  background:
    linear-gradient(145deg, rgba(47, 96, 70, 0.9), rgba(35, 35, 31, 0.82)),
    radial-gradient(circle at 20% 15%, rgba(246, 217, 144, 0.24), transparent 36%);
}

.work-platform::after {
  content: "TD";
}

.work-mulaykal {
  background:
    linear-gradient(145deg, rgba(123, 36, 50, 0.88), rgba(49, 95, 123, 0.72)),
    radial-gradient(circle at 18% 16%, rgba(200, 117, 37, 0.36), transparent 34%);
}

.work-mulaykal::after {
  content: "ॐ";
  font-size: 4.6rem;
}

.work-upcoming {
  background:
    linear-gradient(145deg, rgba(200, 117, 37, 0.82), rgba(35, 35, 31, 0.86)),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 38%);
}

.work-upcoming::after {
  content: "+";
}

.launch-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.launch-copy {
  max-width: 520px;
}

.steps {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.steps span {
  color: var(--muted);
}

.contact {
  grid-template-columns: 1fr 0.8fr;
  align-items: start;
  background: var(--surface);
}

.lead-form {
  gap: 1rem;
  padding: 1.2rem;
}

.lead-form,
.lead-form label {
  display: grid;
}

.lead-form label {
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.78rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.contact-links a {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-links .whatsapp-link,
.whatsapp-submit {
  background: #1fa463;
  border-color: #1fa463;
  color: var(--white);
  box-shadow: 0 12px 28px rgba(31, 164, 99, 0.24);
}

.contact-links .whatsapp-link::before,
.whatsapp-submit::before {
  content: "✆";
  margin-right: 0.45rem;
}

.whatsapp-submit:hover,
.contact-links .whatsapp-link:hover {
  background: #178852;
  border-color: #178852;
}

.form-fallback {
  display: inline-flex;
  justify-content: center;
  color: var(--maroon);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--white);
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer p:first-child {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 920px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(16, 17, 14, 0.9), rgba(16, 17, 14, 0.36));
  }

  .mission::before {
    inset: 0.8rem;
  }

  .mission::after {
    width: 55vw;
  }

  .intro-grid,
  .mission-panel,
  .feature-grid,
  .plan-grid,
  .work-grid,
  .launch-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .plan-desc {
    min-height: auto;
  }

  .footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
  }

  .nav-cta {
    padding: 0.52rem 0.72rem;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 840px;
  }

  .hero-content {
    padding-inline: 1rem;
  }

  .hero-stats div {
    width: 100%;
  }

  .discount-value {
    font-size: 4.5rem;
  }
}
