/* -----------------------------------------------------------------
 * Wird — landing page styles
 * Palette mirrors the iOS app: dark-green primary, mint-teal accent,
 * iOS-style off-white surfaces, with a deep navy "dark" section.
 * ----------------------------------------------------------------- */

:root {
  --brand-teal: #1F5D5A;
  --brand-teal-soft: #E5EFEE;
  --dark-green: #0F4D47;
  --mint-teal: #4ECDC4;
  --dark-bg: #0A1420;
  --dark-surface: #152231;
  --dark-surface-2: #1E2D3E;
  --dark-border: #2A3A4F;
  --dark-secondary: #7A8A9C;
  --bg: #F8F8F7;
  --surface: #FFFFFF;
  --ink: #0F4D47;
  --ink-soft: #4A5A5A;
  --muted: #8E8E93;
  --hairline: #E5E5EA;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(15, 77, 71, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 77, 71, 0.08);
  --shadow-lg: 0 30px 80px rgba(15, 77, 71, 0.15);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* -------------------------------- Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(248, 248, 247, 0.82);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav__brand img { height: 32px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--dark-green); }
.nav__cta {
  background: var(--dark-green);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav__cta:hover { background: #0a3a35; transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav { padding: 12px 16px; }
}

/* -------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}
.btn--primary { background: var(--dark-green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #0a3a35; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--dark-green); border-color: var(--hairline); }
.btn--ghost:hover { border-color: var(--dark-green); }
.btn--lg { padding: 18px 32px; font-size: 17px; }

/* -------------------------------- Hero */
.hero {
  padding: 80px 28px 40px;
  background: linear-gradient(180deg, var(--bg) 0%, #EFF4F3 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  inset-inline-start: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.22), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-teal-soft);
  color: var(--brand-teal);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero__dot {
  width: 6px; height: 6px;
  background: var(--mint-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.2);
}
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  margin: 20px 0 32px;
  max-width: 540px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__device {
  display: flex;
  justify-content: center;
  position: relative;
}
.device {
  width: 320px;
  aspect-ratio: 1320 / 2868;
  background: #000;
  border-radius: 48px;
  padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.08);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}
.device:hover { transform: rotate(0deg) scale(1.02); }
.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
}

@media (max-width: 900px) {
  .hero { padding: 48px 20px 32px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__cta { justify-content: center; }
  .hero__sub { margin-inline: auto; }
  .device { width: 260px; }
}

/* -------------------------------- Stats */
.stats {
  max-width: var(--max);
  margin: -10px auto 0;
  padding: 28px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  transform: translateY(-10px);
}
.stats__item { text-align: center; }
.stats__num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark-green);
  letter-spacing: -0.02em;
}
.stats__label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-inline: 16px;
    padding: 24px 16px;
  }
}

/* -------------------------------- Sections */
.section {
  max-width: var(--max);
  margin: 80px auto;
  padding: 0 28px;
}
.section--dark {
  max-width: none;
  margin: 80px 0;
  padding: 80px 28px;
  background: var(--dark-bg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: '';
  position: absolute;
  inset-inline-end: -120px;
  top: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.15), transparent 70%);
  pointer-events: none;
}
.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section__head--light { color: #fff; }
.section__head--light h2 { color: #fff; }
.section__head--light p { color: rgba(255,255,255,0.72); }
.section__head p { margin-top: 16px; font-size: 1.08rem; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section--dark .eyebrow { color: var(--mint-teal); }

/* -------------------------------- Feature cards */
.grid {
  display: grid;
  gap: 20px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-teal-soft);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--brand-teal-soft);
  color: var(--brand-teal);
  border-radius: 14px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; }

/* -------------------------------- Screens gallery */
.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 16px 4px 32px;
  scroll-snap-type: x mandatory;
  max-width: var(--max);
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); border-radius: 999px; }
.gallery::-webkit-scrollbar-thumb { background: rgba(78,205,196,0.5); border-radius: 999px; }
.shot {
  flex: 0 0 auto;
  width: 240px;
  margin: 0;
  scroll-snap-align: center;
}
.shot img {
  width: 100%;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  border-radius: 32px;
  border: 1px solid var(--dark-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}
.shot:hover img { transform: translateY(-6px); }
.shot figcaption {
  margin-top: 14px;
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
}

/* -------------------------------- Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--hairline);
  position: relative;
}
.step__num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dark-green), var(--brand-teal));
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 20px rgba(15, 77, 71, 0.2);
}
.step h3 { margin-bottom: 8px; }

/* -------------------------------- FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: var(--brand-teal); }
.faq summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--brand-teal);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq p {
  padding: 0 24px 22px;
  color: var(--ink-soft);
}

/* -------------------------------- Final CTA */
.cta {
  padding: 80px 28px;
  background: linear-gradient(135deg, var(--dark-green), var(--brand-teal));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(78,205,196,0.25), transparent 40%),
              radial-gradient(circle at 80% 90%, rgba(78,205,196,0.18), transparent 40%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,0.85); font-size: 1.08rem; }
.cta .btn--primary {
  margin-top: 28px;
  background: #fff;
  color: var(--dark-green);
}
.cta .btn--primary:hover {
  background: rgba(255,255,255,0.92);
}
.cta__note {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* -------------------------------- Footer */
.footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,0.72);
  padding: 56px 28px 24px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--dark-border);
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { height: 36px; }
.footer__brand p { color: rgba(255,255,255,0.72); font-size: 14px; margin: 0; }
.footer__links { display: flex; gap: 24px; font-size: 14px; flex-wrap: wrap; }
.footer__links a { transition: color 0.15s ease; }
.footer__links a:hover { color: var(--mint-teal); }
.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

@media (max-width: 640px) {
  .footer__inner { flex-direction: column; text-align: center; }
}
