:root {
  --bg: #f8f1e4;
  --bg-soft: #fffaf1;
  --card: rgba(255, 250, 241, 0.78);
  --card-strong: #fff9ef;
  --text: #193a30;
  --muted: #6c6658;
  --line: rgba(167, 138, 75, 0.18);
  --green: #0e5a42;
  --green-deep: #0a4734;
  --gold: #d7ba76;
  --gold-deep: #aa8a44;
  --shadow: 0 24px 80px rgba(20, 49, 39, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Tajawal', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 186, 118, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(14, 90, 66, 0.12), transparent 25%),
    linear-gradient(180deg, #f8f1e4 0%, #fdf8ef 38%, #f6efe1 100%);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(to right, rgba(167, 138, 75, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(167, 138, 75, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black 15%, transparent 70%);
}

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

.page-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 24px 0 48px;
  position: relative;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 14px;
  z-index: 20;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 38px rgba(29, 53, 45, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(14, 90, 66, 0.2);
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.brand-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.header-nav a,
.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.header-nav a:hover,
.footer-links a:hover {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
  padding: 42px 0 24px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(215, 186, 118, 0.18);
  border: 1px solid rgba(170, 138, 68, 0.18);
  color: var(--green);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1,
.section-heading h2,
.cta-section h2 {
  margin: 0 0 16px;
  line-height: 1.2;
  font-size: clamp(2.1rem, 4vw, 4.3rem);
}

.hero h1 span {
  color: var(--green);
  display: block;
}

.hero-text,
.section p,
.cta-section p,
.quote-box p,
.feature-card p,
.mission-card p,
.sources-box li,
.site-footer p {
  font-size: 1.08rem;
  line-height: 2;
  color: var(--muted);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  padding: 16px 18px;
  border-radius: 22px;
  text-decoration: none;
  background: linear-gradient(180deg, #133f31 0%, #0e5a42 100%);
  color: #fff8ea;
  box-shadow: 0 20px 45px rgba(14, 90, 66, 0.2);
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(14, 90, 66, 0.24);
}

.store-btn small {
  display: block;
  opacity: 0.82;
  font-size: 0.82rem;
  margin-bottom: 3px;
}

.store-btn strong {
  font-size: 1rem;
}

.store-btn--play {
  background: linear-gradient(180deg, #fdf5e8 0%, #fffaf2 100%);
  color: var(--green-deep);
  border-color: rgba(167, 138, 75, 0.22);
}

.store-btn.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.store-btn .store-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
}

.store-btn--play .store-icon {
  background: rgba(14, 90, 66, 0.08);
}

.store-icon svg {
  width: 23px;
  height: 23px;
}

.hero-note {
  margin-top: 14px;
  color: var(--muted);
}

.hero-note code {
  background: rgba(14, 90, 66, 0.08);
  padding: 4px 8px;
  border-radius: 8px;
  font-family: ui-monospace, monospace;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 390px);
  padding: 18px;
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,250,241,0.74));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  position: relative;
}

.phone-notch {
  width: 36%;
  height: 22px;
  border-radius: 0 0 18px 18px;
  margin: -18px auto 8px;
  background: #14372d;
}

.screen-glow {
  position: absolute;
  inset: 32px 32px auto;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(215, 186, 118, 0.35), transparent 72%);
  pointer-events: none;
}

.phone-screen {
  border-radius: 32px;
  padding: 24px 18px 20px;
  background: linear-gradient(180deg, #fbf4e8, #fffaf1);
  min-height: 640px;
  position: relative;
  overflow: hidden;
}

.app-preview-top {
  width: 54px;
  height: 4px;
  border-radius: 99px;
  background: rgba(14, 90, 66, 0.2);
  margin: 0 auto 20px;
}

.app-icon-large {
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  border-radius: 30px;
  box-shadow: 0 18px 40px rgba(14, 90, 66, 0.16);
}

.phone-screen h2 {
  text-align: center;
  margin: 0 0 10px;
  font-size: 2rem;
}

.phone-screen > p {
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 18px;
}

.preview-buttons {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.preview-buttons span,
.preview-card {
  border-radius: 20px;
  padding: 16px;
}

.preview-buttons span:first-child {
  background: var(--green);
  color: #fff8ea;
  font-weight: 800;
  text-align: center;
}

.preview-buttons span:last-child {
  background: #fff;
  border: 1px solid rgba(167, 138, 75, 0.22);
  color: var(--green);
  font-weight: 700;
  text-align: center;
}

.preview-card {
  background: #fff;
  border: 1px solid rgba(167, 138, 75, 0.22);
}

.preview-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.preview-card p {
  margin: 0;
}

.stats,
.features-grid,
.mission-grid {
  display: grid;
  gap: 18px;
}

.stats {
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 30px;
}

.stat-card,
.feature-card,
.mission-card,
.two-col-card,
.sources-box,
.cta-section,
.site-footer {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.stat-card,
.feature-card,
.mission-card,
.sources-box {
  border-radius: 24px;
  padding: 22px;
}

.stat-card strong,
.feature-card h3,
.mission-card h3,
.sources-box h3 {
  display: block;
  font-size: 1.14rem;
  margin-bottom: 8px;
}

.stat-card span {
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: 34px 0 8px;
}

.section-heading {
  margin-bottom: 20px;
}

.two-col-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  border-radius: 28px;
  padding: 24px;
}

.quote-box {
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(14, 90, 66, 0.95), rgba(9, 61, 45, 0.9));
}

.quote-box p {
  color: #fff8ea;
  margin: 0;
}

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

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.shot-card {
  padding: 12px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,249,239,0.78));
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: var(--shadow);
}

.shot-card--offset {
  transform: translateY(34px);
}

.shot-frame {
  position: relative;
  border-radius: 34px;
  padding: 14px;
  background: linear-gradient(180deg, #123a2d, #0e5a42);
  aspect-ratio: 9 / 19;
  overflow: hidden;
}

.shot-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 22px;
  border-radius: 0 0 16px 16px;
  background: #081f18;
  z-index: 2;
}

.shot-frame::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 22%);
  pointer-events: none;
}

.shot-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  background: #efe6d6;
}

.section-heading code {
  background: rgba(14, 90, 66, 0.08);
  padding: 3px 8px;
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 14px;
  font-size: 1.4rem;
  background: rgba(215, 186, 118, 0.18);
}

.mission-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}

.sources-box ul {
  margin: 0;
  padding-right: 18px;
}

.cta-section {
  border-radius: 32px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 36px;
}

.site-footer {
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.site-footer p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.12s;
}

@media (max-width: 980px) {
  .hero,
  .two-col-card,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .stats,
  .features-grid,
  .mission-grid,
  .screenshots-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-card--offset {
    transform: translateY(16px);
  }

  .site-footer,
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-nav {
    justify-content: center;
  }

  .footer-links {
    text-align: right;
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max));
  }

  .site-header {
    padding: 14px;
  }

  .header-nav {
    gap: 10px 14px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero h1,
  .section-heading h2,
  .cta-section h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .stats,
  .features-grid,
  .mission-grid,
  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .shot-card--offset {
    transform: translateY(0);
  }

  .store-btn {
    width: 100%;
    min-width: 0;
  }

  .phone-screen {
    min-height: 560px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max));
  }

  .hero {
    padding-top: 18px;
  }

  .hero h1,
  .section-heading h2,
  .cta-section h2 {
    font-size: 2rem;
  }

  .stats,
  .features-grid,
  .mission-grid,
  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .shot-card--offset {
    transform: translateY(0);
  }

  .store-btn {
    width: 100%;
    min-width: 0;
  }

  .phone-screen {
    min-height: 560px;
  }
}
