@import url("/najma-theme.css");

/* hero shell — nav + hero as one minimal block */
.hero-shell {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px) 8px;
  box-sizing: border-box;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 12px;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    backdrop-filter 0.28s ease,
    padding 0.28s ease,
    margin 0.28s ease;
}

.nav.is-scrolled {
  background: rgba(47, 2, 84, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--glass-border);
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--main);
  flex-shrink: 0;
}

.brand .brand-star {
  display: block;
  width: clamp(24px, 3vw, 30px);
  height: clamp(24px, 3vw, 30px);
  object-fit: contain;
  flex: none;
}

.brand .najma-word {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--main);
}

.brand-text {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--main);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 1;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--secondary);
}

.nav-links a.btn {
  color: var(--very-main);
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: 16px 0 48px;
  width: 100%;
  min-width: 0;
}

.hero-text {
  min-width: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 238, 50, 0.1);
  color: var(--secondary);
  border: 1px solid rgba(255, 238, 50, 0.22);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.pill img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0 0 28px;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 14em;
  line-height: 1.15;
}

.hero h1 .najma-word {
  display: inline;
  font-size: 1em;
  margin: 0;
  vertical-align: baseline;
}

.lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 54ch;
}

.lead strong {
  color: var(--main);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* hero art */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(4px, 1.2vw, 14px);
  padding: 8px 0 0;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 12% 0 8%;
  background: radial-gradient(circle, rgba(255, 238, 50, 0.12), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}

.device-mockup {
  width: min(48%, 245px);
  margin: 0;
  position: relative;
  z-index: 1;
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.device-mockup--iphone {
  transform: translateY(2px) rotate(-1.5deg);
}

.device-mockup--galaxy {
  transform: translateY(16px) rotate(1.5deg);
}

.device-mockup:hover {
  transform: translateY(-6px) rotate(0deg) scale(1.025);
}

.device-mockup__image {
  display: block;
  width: 100%;
  height: clamp(360px, 43vw, 520px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.38));
}

.mini-cap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.mini-cap img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  opacity: 1;
}

.hero-art .qr {
  width: 80px;
  height: 80px;
}

/* trust strip */
.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto 12px;
  padding: 0 clamp(16px, 4vw, 24px);
  box-sizing: border-box;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--main);
}

.strip-item strong {
  display: block;
  font-weight: 700;
  font-size: 15px;
}

.strip-item span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* sections */
.section {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 72px clamp(16px, 4vw, 32px);
  box-sizing: border-box;
}

.section.alt {
  max-width: none;
  padding-top: 64px;
  padding-bottom: 64px;
}

.section.alt > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  text-align: center;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 36px;
  max-width: 640px;
}

.activities-showcase {
  width: min(82%, 760px);
  margin: 34px auto 0;
  position: relative;
}

.activities-showcase::before {
  content: "";
  position: absolute;
  inset: 16% 8% 4%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(255, 238, 50, 0.12), transparent 68%);
  filter: blur(32px);
}

.activities-showcase img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 38px rgba(0, 0, 0, 0.34));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.activities-showcase:hover img {
  transform: translateY(-5px) scale(1.01);
}

/* features */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.card {
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 238, 50, 0.28);
}

.card .ico-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 238, 50, 0.1);
  border: 1px solid rgba(255, 238, 50, 0.18);
  margin-bottom: 16px;
  color: var(--secondary);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.step {
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--very-secondary));
  color: var(--very-main);
  font-weight: 800;
  margin-bottom: 14px;
  font-size: 15px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.how-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  margin-top: 28px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14px;
}

.how-note img {
  width: 20px;
  height: 20px;
  opacity: 0.85;
}

/* request form */
.req-form {
  max-width: 680px;
  margin: 0 auto;
  border-radius: var(--radius);
  padding: 32px;
}

.req-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.req-form label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.req-form input,
.req-form select,
.req-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  color: var(--main);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.req-form input::placeholder,
.req-form textarea::placeholder {
  color: rgba(251, 250, 251, 0.35);
}

.req-form input:focus,
.req-form select:focus,
.req-form textarea:focus {
  outline: none;
  border-color: rgba(255, 238, 50, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 238, 50, 0.12);
}

.req-form select option {
  background: var(--very-main);
  color: var(--main);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-msg {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
  text-align: center;
}

.form-msg.ok {
  color: var(--secondary);
}

.form-msg.err {
  color: #ff8a8a;
}

/* footer */
.footer {
  margin-top: 24px;
  padding: 40px clamp(16px, 4vw, 32px) 48px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.foot-brand img {
  height: 32px;
  width: auto;
}

.foot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.foot-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.foot-links a:hover {
  color: var(--secondary);
}

.foot-copy {
  font-size: 13px;
  color: rgba(251, 250, 251, 0.66);
  max-width: 620px;
  line-height: 1.7;
}

.foot-legal {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(251, 250, 251, 0.4);
}

/* pass preview cards in hero — Najma palette */
.apple-pass {
  background: linear-gradient(165deg, #2f0254 0%, #1a0130 100%);
  color: #fbfafb;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 238, 50, 0.12);
  font-size: 14px;
}

.ap-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ap-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ap-logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
  background: transparent;
  padding: 0;
}

.ap-logo-text {
  font-weight: 700;
  font-size: 13px;
}

.apple-pass .najma-word,
.gw-head .najma-word {
  color: var(--main);
}

.ap-header {
  text-align: end;
}

.ap-flabel {
  font-size: 9px;
  letter-spacing: 0.8px;
  opacity: 0.75;
  text-transform: uppercase;
}

.ap-fvalue {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
}

.ap-primary {
  margin: 20px 0 16px;
}

.ap-pvalue {
  font-size: 24px;
  font-weight: 700;
}

.ap-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ap-right {
  text-align: end;
}

.ap-svalue {
  font-size: 14px;
  font-weight: 500;
}

.ap-barcode {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.google-pass {
  background: rgba(251, 250, 251, 0.96);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  font-size: 14px;
}

.gw-head {
  background: linear-gradient(135deg, #2f0254, #4a0d7a);
  color: #fbfafb;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gw-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  flex: none;
}

.gw-issuer-name {
  font-size: 11px;
  opacity: 0.85;
}

.gw-program {
  font-size: 15px;
  font-weight: 700;
}

.gw-body {
  display: flex;
  gap: 24px;
  padding: 14px;
}

.gw-plabel {
  font-size: 11px;
  color: #6b5f78;
}

.gw-pvalue {
  font-size: 20px;
  font-weight: 700;
  color: #2f0254;
}

.gw-barcode {
  padding: 12px;
  text-align: center;
  border-top: 1px solid #eee;
}

.qr {
  width: 116px;
  height: 116px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  grid-template-rows: repeat(11, 1fr);
  gap: 1px;
  background: #fff;
  padding: 6px;
  border-radius: 4px;
}

.qr i {
  background: #2f0254;
  border-radius: 1px;
}

.qr i.off {
  background: transparent;
}

.qr.light {
  background: #fff;
}

/* responsive */
@media (max-width: 900px) {
  .hero-shell {
    padding: 0 clamp(16px, 4vw, 24px) 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 8px;
  }

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

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

  .nav-links a:not(.btn) {
    display: none;
  }
}

@media (max-width: 560px) {
  .nav {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-links .btn {
    display: none;
  }

  .lang-dropdown__label {
    display: none;
  }

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

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

  .hero-art {
    gap: 0;
    align-items: flex-end;
  }

  .device-mockup {
    width: 52%;
  }

  .device-mockup--iphone {
    margin-right: -4%;
  }

  .device-mockup--galaxy {
    margin-left: -4%;
  }

  .device-mockup__image {
    height: clamp(330px, 108vw, 470px);
  }

  .strip {
    flex-direction: column;
    align-items: stretch;
  }

  .strip-item {
    justify-content: flex-start;
  }
}

html[dir="rtl"] .nav-links,
html[dir="rtl"] .hero-cta,
html[dir="rtl"] .foot-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .ap-header,
html[dir="rtl"] .ap-right {
  text-align: start;
}

/* ── Scroll morph reveals ── */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.96);
  filter: blur(10px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-hero.reveal--float {
  animation:
    hero-morph-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    reveal-float 6s ease-in-out 1.2s infinite;
}

@keyframes reveal-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1);
  }
}

.reveal-hero {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(8px);
  animation: hero-morph-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--hero-delay, 0ms);
}

@keyframes hero-morph-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-art {
  transition: transform 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-hero {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
    transition: none;
  }

  .reveal--float.is-visible,
  .reveal-hero.reveal--float {
    animation: none;
  }

  .hero-art {
    transition: none;
  }
}
