:root {
  --bg: #fff9f2;
  --bg-soft: #fff3e4;
  --surface: #ffffff;
  --primary: #f4a261;
  --primary-dark: #d85c22;
  --accent: #e76f51;
  --text: #2d1b16;
  --muted: #6f625c;
  --border: #f0dfcf;
  --shadow: 0 24px 60px rgba(70, 39, 13, 0.12);
  --shadow-soft: 0 14px 35px rgba(70, 39, 13, 0.09);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans Sinhala", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

body.lang-si {
  font-family: "Noto Sans Sinhala", "Inter", system-ui, sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.section-padding {
  padding: 92px 0;
}

/* ===============================
   Header / Navbar
================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(240, 223, 207, 0.9);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand-icon,
.brand-fallback {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-fallback {
  display: none;
  place-items: center;
  background: linear-gradient(135deg, #fff0cc, #ffd8b5);
  font-size: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #1f1714;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 99px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.language-switch {
  display: inline-flex;
  border: 1px solid #efc89d;
  border-radius: 12px;
  overflow: hidden;
  background: #fffaf5;
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.lang-btn.active {
  color: var(--primary-dark);
  background: #fff0df;
}

.menu-button {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
}

/* ===============================
   Hero Section
================================ */

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
  width: 640px;
  height: 640px;
  right: 6%;
  top: 80px;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.18), rgba(244, 162, 97, 0.04), transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 48px;
}

.badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 800;
  background: #ffeddf;
  border: 1px solid #f8d8bc;
  border-radius: 999px;
}

.badge {
  padding: 12px 18px;
  margin-bottom: 28px;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: #2a110b;
}

.hero-description {
  margin: 28px 0 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 214px;
  padding: 12px 18px;
  background: #111111;
  color: white;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.play-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #35d07f, #5a8cff, #ffc857, #ff4f6d);
  font-size: 15px;
}

.play-button small,
.play-button strong {
  display: block;
  line-height: 1;
}

.play-button small {
  font-size: 10px;
  opacity: 0.84;
  letter-spacing: 0.08em;
}

.play-button strong {
  margin-top: 4px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.text-link {
  color: var(--primary-dark);
  font-weight: 800;
}

.text-link::after {
  content: " →";
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 38px;
  color: #413631;
  font-weight: 700;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===============================
   Clean Hero Screenshot Area
================================ */

.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.visual-bg-shape {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(244, 162, 97, 0.24),
    rgba(244, 162, 97, 0.06) 62%,
    transparent 72%
  );
  z-index: 0;
}

.phone-gallery {
  position: relative;
  width: 500px;
  height: 520px;
  z-index: 2;
}

.phone-frame {
  position: absolute;
  background: #111111;
  border: 10px solid #111111;
  border-radius: 36px;
  box-shadow: 0 24px 60px rgba(45, 42, 38, 0.22);
  overflow: hidden;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 92px;
  height: 22px;
  transform: translateX(-50%);
  background: #111111;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 3;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 26px;
  background: #fff7ef;
}

.phone-main {
  width: 245px;
  height: 500px;
  left: 128px;
  top: 10px;
  z-index: 5;
  animation: softFloatMain 5s ease-in-out infinite;
}

.phone-back-left {
  width: 210px;
  height: 430px;
  left: 10px;
  top: 60px;
  z-index: 3;
  opacity: 0.95;
  transform: rotate(-7deg);
  --phone-rotate: -7deg;
  animation: softFloatSide 6s ease-in-out infinite;
}

.phone-back-right {
  width: 210px;
  height: 430px;
  right: 10px;
  top: 62px;
  z-index: 2;
  opacity: 0.95;
  transform: rotate(7deg);
  --phone-rotate: 7deg;
  animation: softFloatSide 6s ease-in-out infinite;
}

.feature-pills {
  position: absolute;
  right: -8px;
  top: 130px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-pill {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(240, 228, 216, 0.9);
  box-shadow: 0 14px 32px rgba(45, 42, 38, 0.12);
  backdrop-filter: blur(12px);
  font-size: 16px;
  font-weight: 700;
  color: #2d2a26;
}

.pill-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #fff1e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

@keyframes softFloatMain {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(0deg);
  }
}

@keyframes softFloatSide {
  0%,
  100% {
    transform: translateY(0) rotate(var(--phone-rotate));
  }

  50% {
    transform: translateY(6px) rotate(var(--phone-rotate));
  }
}

/* ===============================
   Section Common Styles
================================ */

.section-heading {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-kicker {
  padding: 8px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

.section-heading h2,
.premium-copy h2,
.contact-card h2,
.policy-container h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p,
.premium-copy p,
.contact-card p,
.policy-block p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

/* ===============================
   Features Section
================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card,
.premium-card,
.contact-card,
.policy-container {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(240, 223, 207, 0.9);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  border-radius: 24px;
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff0df;
  font-size: 28px;
  margin-bottom: 22px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ===============================
   Premium Section
================================ */

.premium-section {
  background: linear-gradient(180deg, transparent, #fff3e5);
}

.premium-card {
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.price-box {
  width: fit-content;
  min-width: 260px;
  margin-top: 26px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff4e7, #ffffff);
  border: 1px solid var(--border);
}

.price-box span,
.price-box small,
.price-box strong {
  display: block;
}

.price-box span {
  color: var(--muted);
  font-weight: 700;
}

.price-box strong {
  margin-top: 8px;
  font-size: 34px;
  letter-spacing: -0.04em;
  color: var(--primary-dark);
}

.price-box small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.premium-steps {
  padding: 28px;
  border-radius: 24px;
  background: #2a110b;
  color: white;
}

.premium-steps h3 {
  margin: 0 0 16px;
  font-size: 24px;
}

.premium-steps ol {
  margin: 0;
  padding-left: 20px;
}

.premium-steps li {
  margin: 12px 0;
  line-height: 1.6;
}

.info-note {
  margin: 22px 0 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffe7cf;
  line-height: 1.6;
}

/* ===============================
   Contact / Footer
================================ */

.contact-card {
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-email {
  display: inline-flex;
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff0df;
  color: var(--primary-dark);
  font-weight: 800;
  border: 1px solid #f3cfaa;
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  background: #fff8f0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer-content a {
  color: var(--primary-dark);
  font-weight: 800;
}

/* ===============================
   Privacy Policy Page
================================ */

.policy-page {
  min-height: calc(100vh - 78px);
}

.policy-container {
  max-width: 880px;
  border-radius: var(--radius-lg);
  padding: 44px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--primary-dark);
  font-weight: 800;
}

.policy-updated {
  color: var(--muted);
  font-weight: 700;
}

.policy-block {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.policy-block h2 {
  margin: 0 0 10px;
}

.policy-note {
  margin-top: 28px;
  padding: 16px;
  border-radius: 16px;
  background: #fff1dd;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-weight: 700;
}

/* ===============================
   Responsive Styles
================================ */

@media (max-width: 1180px) {
  .phone-gallery {
    width: 460px;
    height: 500px;
  }

  .phone-main {
    width: 230px;
    height: 470px;
    left: 115px;
  }

  .phone-back-left,
  .phone-back-right {
    width: 195px;
    height: 400px;
  }

  .feature-pills {
    right: -20px;
  }

  .feature-pill {
    min-width: 165px;
    font-size: 15px;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .premium-card {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;
  }

  .hero-description,
  .hero-actions,
  .trust-row {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .hero-visual {
    min-height: 540px;
  }

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

  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .menu-button {
    display: grid;
    place-items: center;
  }

  .nav-links:not(.always-visible) {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links.always-visible {
    gap: 14px;
  }

  .nav-links.always-visible a:not(:first-child):not(:nth-child(4)) {
    display: none;
  }

  .brand {
    font-size: 18px;
  }

  .brand-icon,
  .brand-fallback {
    width: 40px;
    height: 40px;
  }

  .section-padding {
    padding: 64px 0;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-content h1 {
    letter-spacing: -0.04em;
  }

  .hero-visual {
    min-height: auto;
    padding-top: 36px;
    flex-direction: column;
  }

  .phone-gallery {
    width: 360px;
    height: 470px;
  }

  .visual-bg-shape {
    width: 360px;
    height: 360px;
  }

  .phone-main {
    width: 220px;
    height: 445px;
    left: 70px;
    top: 10px;
  }

  .phone-back-left {
    width: 170px;
    height: 350px;
    left: 0;
    top: 72px;
    opacity: 0.85;
    --phone-rotate: -5deg;
  }

  .phone-back-right {
    width: 170px;
    height: 350px;
    right: 0;
    top: 72px;
    opacity: 0.85;
    --phone-rotate: 5deg;
  }

  .feature-pills {
    position: static;
    margin-top: 20px;
    width: 100%;
    max-width: 360px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .feature-pill {
    min-width: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    gap: 18px;
  }

  .play-button {
    width: 100%;
    justify-content: center;
  }

  .trust-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .premium-card,
  .contact-card,
  .policy-container {
    padding: 26px;
    border-radius: 24px;
  }

  .price-box {
    width: 100%;
    min-width: auto;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .hero-visual {
    padding-top: 24px;
  }

  .phone-gallery {
    width: 310px;
    height: 430px;
  }

  .visual-bg-shape {
    width: 300px;
    height: 300px;
  }

  .phone-main {
    width: 205px;
    height: 410px;
    left: 52px;
  }

  .phone-back-left {
    width: 145px;
    height: 310px;
    left: 0;
    top: 78px;
    opacity: 0.78;
  }

  .phone-back-right {
    width: 145px;
    height: 310px;
    right: 0;
    top: 78px;
    opacity: 0.78;
  }

  .feature-pill {
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 14px;
  }

  .pill-icon {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
}