/* Razqi landing. Brand palette lifted from the app (app_colors.dart). Light theme, committed. */

:root {
  --dark-forest: #1C4327;
  --deep-moss: #255733;
  --forest: #2F6D3F;
  --grove: #3D7D52;
  --sage: #6EAE87;
  --mint: #A5CFB5;
  --dew: #CEE5D5;
  --mist: #EAF5EF;
  --hairline: #E3EEE7;
  --pure: #FFFFFF;
  --ink: #16301F;
  --body: #46604F;
  --radius: 20px;
  --shell: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  color: var(--body);
  background: var(--pure);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.25; }

/* ---------- Buttons (pill system: all interactive = full radius) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--deep-moss), var(--grove));
  color: var(--pure);
  box-shadow: 0 8px 24px rgba(28, 67, 39, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(28, 67, 39, 0.3); }

.btn-light {
  background: var(--pure);
  color: var(--dark-forest);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.btn-light:hover { transform: translateY(-2px); }

.btn-ghost {
  color: var(--pure);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { border-color: var(--hairline); box-shadow: 0 6px 24px rgba(28, 67, 39, 0.06); }

.nav-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: auto; }
.brand-name { font-size: 21px; font-weight: 700; color: var(--dark-forest); letter-spacing: 0.5px; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--forest); }

.btn-nav { padding: 10px 24px; font-size: 14.5px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1C4327 0%, #2F6D3F 65%, #3D7D52 100%);
  padding-top: 70px; /* nav offset */
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}
.hero-glow-a {
  width: 420px; height: 420px;
  top: -140px; inset-inline-start: -120px;
  background: radial-gradient(circle, rgba(165, 207, 181, 0.16), transparent 70%);
}
.hero-glow-b {
  width: 520px; height: 520px;
  bottom: -200px; inset-inline-end: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  min-height: calc(100dvh - 70px);
  padding-block: 48px;
}

.hero-copy h1 {
  color: var(--pure);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 22px;
}

.hero-sub {
  color: var(--dew);
  font-size: 18px;
  font-weight: 300;
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Phone frame ---------- */

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

.phone {
  width: min(300px, 72vw);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #0f2416, #1C4327);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.phone-screen {
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--mist);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

.screen-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(180deg, var(--pure), var(--mist));
  color: var(--sage);
  font-size: 14px;
  font-weight: 500;
}
.screen-logo { width: 64px; opacity: 0.55; }

/* ---------- Features bento ---------- */

.features { padding-block: 110px 90px; background: var(--pure); }

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 48px;
}

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

.cell {
  border-radius: var(--radius);
  padding: 34px 30px;
  background: var(--pure);
  border: 1px solid var(--hairline);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cell:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(28, 67, 39, 0.1); }

.cell h3 { font-size: 20px; margin-bottom: 10px; }
.cell p { font-size: 15.5px; }

.cell-icon { font-size: 34px; color: var(--forest); margin-bottom: 18px; display: inline-block; }

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

.cell-forest {
  background: linear-gradient(135deg, var(--deep-moss), var(--grove));
  border: none;
}
.cell-forest h3 { color: var(--pure); }
.cell-forest p { color: var(--dew); }
.cell-forest .cell-icon { color: var(--mint); }

.cell-dew { background: var(--dew); border: none; }
.cell-mint { background: var(--mist); border: none; }

/* ---------- How it works ---------- */

.how { padding-block: 90px; background: var(--mist); }

.how-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.how-copy .section-title { margin-bottom: 18px; }
.how-sub { font-size: 17px; max-width: 40ch; }

.timeline { list-style: none; display: grid; gap: 8px; }

.timeline li {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 36px;
}
.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: 27px;
  top: 56px;
  bottom: 0;
  width: 1px;
  background: var(--mint);
}

.t-marker {
  flex-shrink: 0;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pure);
  color: var(--forest);
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(28, 67, 39, 0.12);
}

.timeline h3 { font-size: 19px; margin-bottom: 6px; }
.timeline p { font-size: 15.5px; max-width: 44ch; }

/* ---------- Preview strip ---------- */

.preview { padding-block: 100px 0; background: var(--pure); overflow: hidden; }
.preview .section-title { text-align: center; margin-bottom: 12px; }

.preview-strip {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 28px;
  padding: 44px 24px 0;
  transform: translateY(24px);
}

.phone-sm { width: min(230px, 60vw); box-shadow: 0 30px 60px rgba(28, 67, 39, 0.18); }
.phone-raised { margin-bottom: 40px; }

/* ---------- Download band ---------- */

.download {
  background: linear-gradient(135deg, #1C4327 0%, #2F6D3F 70%, #3D7D52 100%);
  padding-block: 110px;
}

.download-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.download-mark {
  width: 72px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.download h2 { color: var(--pure); font-size: clamp(30px, 4.5vw, 46px); }
.download p { color: var(--dew); font-size: 17px; margin-bottom: 18px; }

.store-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--pure);
  text-decoration: none;
  text-align: start;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
a.store-btn:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }

.store-btn span { display: flex; flex-direction: column; line-height: 1.3; font-weight: 600; font-size: 16px; }
.store-btn small { font-weight: 300; font-size: 12px; color: var(--dew); }

.store-btn-soon { opacity: 0.6; cursor: default; }

/* ---------- Contact ---------- */

.contact { padding-block: 100px; background: var(--mist); }
.contact .section-title { text-align: center; margin-bottom: 10px; }
.contact .section-sub { text-align: center; max-width: 52ch; margin: 0 auto 44px; font-size: 17px; }

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

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--pure);
  border: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--body);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(28, 67, 39, 0.12); border-color: var(--mint); }
.contact-card h3 { font-size: 19px; }
.contact-card p { font-size: 16px; }
.contact-icon { font-size: 34px; color: var(--forest); margin-bottom: 8px; }
.contact-cta { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--forest); }

.contact-card-primary { background: var(--dark-forest); border-color: var(--dark-forest); color: var(--dew); }
.contact-card-primary h3 { color: var(--pure); }
.contact-card-primary .contact-icon, .contact-card-primary .contact-cta { color: var(--mint); }
.contact-card-primary:hover { border-color: var(--grove); }

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  inset-inline-start: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25D366;
  color: var(--pure);
  font-size: 32px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 34px rgba(37, 211, 102, 0.5); }

/* ---------- Footer ---------- */

.footer { background: var(--pure); border-top: 1px solid var(--hairline); padding-block: 44px; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--body); text-decoration: none; font-size: 14.5px; }
.footer-links a:hover { color: var(--forest); }

.footer-copy { font-size: 13.5px; color: var(--sage); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .cell, .store-btn { transition: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .nav-links { display: none; }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-block: 56px;
    min-height: auto;
  }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }

  .bento { grid-template-columns: 1fr; }
  .cell-wide { grid-column: auto; }

  .how-grid { grid-template-columns: 1fr; gap: 40px; }

  .preview-strip { flex-direction: column; align-items: center; transform: none; padding-bottom: 60px; }
  .phone-raised { margin-bottom: 0; }
  .preview { padding-bottom: 0; }

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

  .contact { padding-block: 70px; }
  .contact-grid { grid-template-columns: 1fr; }
}
