:root {
  --forest: #1b4332;
  --forest-dark: #0f2e22;
  --forest-soft: #2d6a4f;
  --paper: #fdf8f3;
  --cream: #f7f2ec;
  --ink: #2c2419;
  --muted: #6b5a4e;
  --line: #e8ddd4;
  --register-red: #c41e3a;
  --gold: #d7b46a;
  --shadow: 0 16px 44px rgba(15, 46, 34, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top, rgba(215, 180, 106, 0.14), transparent 24%),
    linear-gradient(180deg, #fffaf6 0%, var(--paper) 100%);
  color: var(--ink);
  line-height: 1.6;
}

.ur {
  font-family: "Noto Naskh Arabic", serif;
  direction: rtl;
}

a {
  color: var(--register-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.4rem 1.4rem 5rem;
  color: #fff;
  background:
    radial-gradient(circle at 20% 10%, rgba(215, 180, 106, 0.2), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(150deg, var(--forest-dark) 0%, var(--forest) 48%, #163726 100%);
  border-bottom: 4px solid var(--register-red);
}

.topbar,
.hero-grid,
.section,
footer {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  width: 168px;
  max-width: 100%;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.top-link,
.top-cta {
  color: #fff;
  font-weight: 600;
}

.top-link {
  opacity: 0.84;
}

.top-cta {
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-grid {
  display: grid;
  gap: 2.6rem;
  align-items: center;
  padding-top: 3.6rem;
}

.eyebrow,
.section-kicker,
.plan-badge,
.pain-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #f7e8c5;
}

.hero h1 {
  margin: 1rem 0 0;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.ur-title {
  margin: 0.7rem 0 0;
  font-size: clamp(1.4rem, 3.5vw, 2.3rem);
  opacity: 0.95;
}

.hero-lead {
  margin: 1.2rem 0 0;
  font-size: 1.18rem;
  font-weight: 700;
}

.hero-body {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}

.hero-cta-row,
.cta-band-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.7rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.35rem;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  background: var(--register-red);
  color: #fff;
  box-shadow: 0 12px 24px rgba(196, 30, 58, 0.28);
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.secondary-button.light {
  background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.secondary-button:hover,
.top-cta:hover,
.feature-tab:hover,
.journey-step:hover,
.pain-card:hover,
.plan-card:hover,
.contact-card:hover,
.contact-form-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.hero-points {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.hero-points span {
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8f1e5;
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.phone-frame {
  margin-inline: auto;
  width: min(100%, 420px);
  border-radius: 32px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

/* Hero: real app screenshot inside device frame */
.phone-stage {
  position: relative;
  margin-inline: auto;
  max-width: min(100%, 340px);
}

.phone-glow {
  position: absolute;
  inset: 22% 4% -8%;
  background: radial-gradient(ellipse at 50% 40%, rgba(215, 180, 106, 0.42), transparent 62%);
  filter: blur(28px);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

.phone-frame.phone-frame--live {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  padding: 14px 14px 12px;
  background: linear-gradient(165deg, rgba(46, 52, 48, 0.96) 0%, rgba(10, 12, 11, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
}

.phone-notch {
  height: 20px;
  width: 38%;
  max-width: 118px;
  margin: 0 auto 10px;
  border-radius: 0 0 14px 14px;
  background: rgba(0, 0, 0, 0.42);
}

.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.phone-caption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.85rem 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
}

.phone-caption-ur {
  font-weight: 700;
  opacity: 0.92;
}

.phone-status,
.screen-panel,
.screen-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.phone-status {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
  margin-bottom: 0.9rem;
}

.screen-panel {
  border-radius: 20px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
}

.screen-chip {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.08);
}

.screen-chip.accent {
  background: rgba(196, 30, 58, 0.24);
}

.screen-cards {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.screen-card {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-card.active {
  background: linear-gradient(180deg, rgba(215, 180, 106, 0.2), rgba(255, 255, 255, 0.08));
}

.screen-card h3,
.pain-card h3,
.feature-panel h3,
.journey-step h3,
.plan-card h3,
.contact-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.screen-card p,
.screen-footer {
  color: rgba(255, 255, 255, 0.8);
}

.screen-footer {
  margin-top: 1rem;
  padding: 0.85rem 0.2rem 0;
  font-size: 0.9rem;
}

.section {
  padding: 5rem 0;
}

.section-kicker {
  background: rgba(27, 67, 50, 0.08);
  color: var(--forest);
}

.section h2 {
  margin: 1rem 0 0;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  color: var(--forest);
}

.section-intro {
  max-width: 46rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

/* App screenshot gallery */
.app-gallery {
  position: relative;
}

.app-gallery::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -35%);
  width: min(920px, 92vw);
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(27, 67, 50, 0.09), transparent 68%);
  pointer-events: none;
}

.filmstrip-hint {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.filmstrip-hint-track {
  flex: 0 0 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--line), rgba(27, 67, 50, 0.45));
}

@media (max-width: 899px) {
  .filmstrip-hint {
    display: flex;
  }
}

.filmstrip-wrap {
  margin-top: 1.75rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), var(--cream));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.filmstrip {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  padding: 1.15rem 1.25rem 1.35rem;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.25rem;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0%, #000 0.8rem, #000 calc(100% - 0.8rem), transparent 100%);
}

.filmstrip:focus-visible {
  outline: 3px solid rgba(196, 30, 58, 0.45);
  outline-offset: 2px;
}

.film-card {
  flex: 0 0 clamp(210px, 72vw, 280px);
  scroll-snap-align: start;
  margin: 0;
  transition: transform 220ms ease;
}

.film-card:hover {
  transform: translateY(-4px);
}

.film-device {
  border-radius: 32px;
  padding: 11px;
  background: linear-gradient(145deg, #353a36 0%, #0c0e0d 100%);
  box-shadow:
    0 22px 46px rgba(15, 46, 34, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.film-device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  vertical-align: middle;
}

.film-cap {
  margin: 0.75rem 0 0;
  padding: 0 0.25rem;
  text-align: center;
}

.film-cap strong {
  display: block;
  font-size: 1.02rem;
  color: var(--forest);
}

.film-cap .ur {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.94rem;
  color: var(--muted);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .film-card:hover {
    transform: none;
  }

  .reveal {
    transition: none;
  }
}

.pain-grid,
.journey-grid,
.plan-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.pain-card,
.journey-step,
.plan-card,
.contact-card,
.contact-form-card,
.feature-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.pain-label {
  background: rgba(196, 30, 58, 0.08);
  color: var(--register-red);
}

.feature-band {
  padding: 4rem 0;
  border-radius: 40px;
}

.feature-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.feature-tab {
  width: 100%;
  text-align: left;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.feature-tab strong,
.feature-tab span {
  display: block;
}

.feature-tab span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.feature-tab.is-active {
  border-color: rgba(196, 30, 58, 0.3);
  background: linear-gradient(180deg, rgba(196, 30, 58, 0.06), rgba(255, 255, 255, 0.96));
}

.feature-panels {
  margin-top: 1rem;
}

.feature-panel {
  display: none;
}

.feature-panel.is-active {
  display: block;
}

.journey-number {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--register-red);
  font-weight: 700;
}

.plan-card.featured {
  background: linear-gradient(180deg, rgba(27, 67, 50, 0.06), rgba(255, 255, 255, 0.96));
}

.plan-badge {
  margin-bottom: 0.7rem;
  background: rgba(27, 67, 50, 0.08);
  color: var(--forest);
}

.plan-price {
  margin: 0.25rem 0 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--forest);
}

.plan-card ul,
.contact-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.plan-note {
  margin-top: 1rem;
  color: var(--muted);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 32px;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  color: #fff;
  margin-top: 0.6rem;
}

.cta-band .section-kicker {
  background: rgba(255, 255, 255, 0.12);
  color: #f7e8c5;
}

.contact-layout {
  display: grid;
  gap: 1.3rem;
  margin-top: 2rem;
}

.contact-card p {
  margin: 0.45rem 0 0;
}

.contact-form-card form {
  display: grid;
  gap: 1rem;
}

label span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--forest);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.form-button {
  border: 0;
  cursor: pointer;
}

.form-help,
.form-success,
.footer-copy,
.footer-links,
.privacy-copy {
  color: var(--muted);
}

.form-success {
  margin: 0;
  color: var(--forest);
  font-weight: 700;
}

.hidden-frame {
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
}

footer {
  padding: 3rem 0 3.4rem;
  text-align: center;
}

.footer-copy {
  margin: 0.8rem auto 0;
  max-width: 42rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

.privacy-page {
  min-height: 100vh;
  padding: 2rem 0 4rem;
}

.privacy-shell {
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
}

.privacy-card {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.privacy-card h1,
.privacy-card h2 {
  font-family: "Source Serif 4", serif;
  color: var(--forest);
}

@media (min-width: 860px) {
  .hero-grid,
  .contact-layout {
    grid-template-columns: 1.05fr 0.95fr;
  }

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

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

@media (max-width: 859px) {
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
  }

  .top-link {
    display: none;
  }

  .top-cta,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

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