:root {
  --paper: #f7fbf8;
  --mint: #dcefe5;
  --mint-strong: #34d886;
  --ink: #050807;
  --blue-ink: #071b2b;
  --muted: #415248;
  --line: rgba(7, 27, 43, 0.16);
  --white: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 80px rgba(7, 27, 43, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(247, 251, 248, 0.34), rgba(247, 251, 248, 0.34)),
    url("assets/puralens-background.jpeg") center top / cover fixed;
  font-size: 18px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 82% 18%, rgba(52, 216, 134, 0.12), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(232, 246, 238, 0.42));
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #0a7f4b;
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 12px 0;
  backdrop-filter: blur(14px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--blue-ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #ffffff;
  background: var(--blue-ink);
  border: 2px solid var(--mint-strong);
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(52, 216, 134, 0.12);
}

.nav-links {
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
}

.nav-links a {
  min-height: 44px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(52, 216, 134, 0.14);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.hero {
  min-height: calc(100svh - 72px);
  padding: clamp(36px, 8vw, 96px) 0 40px;
}

.hero-copy {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #047a46;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(54px, 11vw, 108px);
  font-weight: 900;
  line-height: 0.92;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.1;
}

.subtitle {
  margin-bottom: 24px;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.15;
}

.intro {
  max-width: 980px;
  margin-bottom: 30px;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.35;
}

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

.play-badge {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  color: #ffffff;
  background: #000000;
  border-radius: 2px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.availability {
  max-width: 340px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.hero-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: auto;
}

.showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 38px 0 18px;
}

.showcase img {
  width: 100%;
  height: auto;
  border: 2px solid rgba(52, 216, 134, 0.64);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(7, 27, 43, 0.22);
}

.section {
  padding: clamp(58px, 9vw, 104px) 0;
  border-top: 1px solid rgba(7, 27, 43, 0.1);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

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

.feature {
  min-height: 220px;
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(7, 27, 43, 0.11);
}

.feature-wide {
  grid-column: span 2;
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 22px;
  color: #ffffff;
  background: var(--blue-ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.feature p,
.text-stack p,
.contact-section p {
  color: #17231d;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 6vw, 86px);
  align-items: start;
}

.text-stack {
  max-width: 980px;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.45;
}

.text-stack p {
  margin-bottom: 22px;
}

.columns {
  column-count: 2;
  column-gap: clamp(28px, 5vw, 72px);
  font-size: 19px;
}

.columns p {
  break-inside: avoid;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 30px;
  align-items: start;
  padding-bottom: 22vh;
}

.contact-email {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue-ink);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.contact-note {
  padding: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

.footer-links a {
  font-weight: 800;
}

.app-preview-section {
  padding-top: 32px;
}

.app-preview-card {
  max-width: 760px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(7, 27, 43, 0.12);
}

.app-preview-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 19px;
}

.app-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-preview-links a {
  padding: 10px 14px;
  color: var(--blue-ink);
  background: rgba(52, 216, 134, 0.14);
  border: 1px solid rgba(52, 216, 134, 0.28);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.apps-page {
  padding-bottom: 24px;
}

.apps-hero {
  padding: clamp(40px, 7vw, 72px) 0 24px;
}

.apps-subtitle {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.45;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(7, 27, 43, 0.12);
}

.app-card--puralens {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(220, 239, 229, 0.9));
}

.app-card--qibla {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 231, 211, 0.9));
}

.app-card--aninoor {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 239, 255, 0.9));
}

.app-card--flarelens {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(253, 237, 231, 0.9));
}

.app-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app-card__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.app-card__logo {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  object-fit: cover;
  background: #071b2b;
  border-radius: 14px;
}

.app-card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--blue-ink);
  background: rgba(52, 216, 134, 0.16);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 900;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: var(--blue-ink);
  background: rgba(7, 27, 43, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.app-card h2 {
  margin-bottom: 0;
  font-family: inherit;
  font-size: 28px;
  line-height: 1.2;
}

.app-card__category {
  margin-bottom: 0;
  color: #35524b;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-card__description {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

.feature-list li::marker {
  color: #0f9f61;
}

.app-card__button,
.back-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--blue-ink);
  background: rgba(52, 216, 134, 0.16);
  border: 1px solid rgba(52, 216, 134, 0.28);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-row,
.policy-stack {
  display: grid;
  gap: 12px;
}

.button-row {
  grid-template-columns: repeat(2, max-content);
  align-items: center;
}

.apps-footer {
  margin-top: 28px;
  padding: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
}

.detail-page {
  padding: 20px 0 48px;
}

.back-link {
  margin-bottom: 28px;
}

.detail-hero {
  padding: 20px 0 10px;
}

.brand-hero,
.legal-hero {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.legal-hero {
  grid-template-columns: 120px minmax(0, 1fr);
}

.product-logo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #071b2b;
  border-radius: 24px;
  box-shadow: 0 18px 54px rgba(7, 27, 43, 0.2);
}

.product-logo--small {
  border-radius: 20px;
}

.detail-intro {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(20px, 2.5vw, 26px);
}

.detail-intro--support {
  font-size: clamp(18px, 2vw, 22px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.detail-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(7, 27, 43, 0.08);
}

.detail-card h2 {
  font-family: inherit;
  font-size: 24px;
}

.detail-card p,
.detail-card li {
  color: var(--muted);
}

.compact-section {
  padding: clamp(42px, 7vw, 76px) 0;
}

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

.feature-grid--three .feature {
  min-height: 180px;
}

.notice,
.disclaimer-card {
  border-left: 4px solid #0a7f4b;
}

.notice {
  padding: 14px 16px;
  background: rgba(52, 216, 134, 0.1);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.step-grid li {
  min-height: 180px;
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  counter-increment: steps;
}

.step-grid strong,
.step-grid span {
  display: block;
}

.step-grid strong::before {
  display: block;
  margin-bottom: 12px;
  color: #047a46;
  content: counter(steps, decimal-leading-zero);
  font-size: 14px;
}

.step-grid span {
  margin-top: 8px;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 12px;
}

.faq-list summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.support-notice {
  margin-top: 36px;
}

.site-footer {
  margin-top: 48px;
}

.site-footer .footer-links {
  row-gap: 10px;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.legal-page h1 {
  font-size: clamp(42px, 8vw, 86px);
}

.last-updated {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

@media (max-width: 880px) {
  body {
    background-attachment: scroll;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    gap: 14px;
    padding-top: 16px;
  }

  .nav-links {
    overflow-x: auto;
    max-width: 60vw;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
  }

  .feature-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .feature-wide {
    grid-column: auto;
  }

  .columns {
    column-count: 1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  main,
  .site-header {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    flex-direction: column;
  }

  .nav-links {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-links a {
    padding: 8px 6px;
    font-size: 13px;
    text-align: center;
  }

  .hero-actions {
    align-items: stretch;
  }

  .play-badge {
    width: 100%;
    padding-inline: 18px;
    font-size: 18px;
  }

  .hero-media {
    border-radius: 16px;
  }

  .showcase {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .feature {
    min-height: 0;
  }

  .apps-grid,
  .detail-grid,
  .brand-hero,
  .legal-hero,
  .feature-grid--three,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .product-logo {
    width: min(148px, 44vw);
  }

  .app-card__top {
    flex-direction: column;
  }

  .status-badge {
    line-height: 1.35;
  }

  .button-row {
    grid-template-columns: 1fr;
  }

  .app-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
