@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Poppins:wght@400;500;600;700&family=Noto+Naskh+Arabic:wght@400;600;700&display=swap');

:root {
  --bg-0: #f0f7f2;
  --bg-1: #e0efe6;
  --surface: #f3fbf6;
  --surface-strong: #ffffff;
  --ink: #0f4334;
  --muted: #4a5472;
  --brand: #0f7a5f;
  --brand-dark: #0b4a3a;
  --brand-mid: #3b9d7c;
  --accent: #cae6d7;
  --ivory: #f5f1e5;
  --line: #dcebe3;
  --shadow: 0 22px 60px rgba(11, 74, 58, 0.18);
  --radius-lg: 36px;
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1120px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
  font-family: "Poppins", "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, rgba(15, 122, 95, 0.12), transparent 50%),
    radial-gradient(circle at 85% 10%, rgba(59, 157, 124, 0.16), transparent 45%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: absolute;
  inset: -120px auto auto -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(15, 122, 95, 0.18), transparent 70%);
  filter: blur(0);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

body::after {
  inset: 120px -80px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(11, 74, 58, 0.18), transparent 70%);
}

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

h1, h2, h3 {
  font-family: "Fraunces", "Georgia", serif;
  letter-spacing: -0.02em;
}

body.rtl h1,
body.rtl h2,
body.rtl h3 {
  font-family: "Noto Naskh Arabic", "Amiri", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(240, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(11, 74, 58, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(11, 74, 58, 0.18);
  background: #ffffff;
  padding: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

.header-drawer {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav {
  display: flex;
  gap: 16px;
}

.nav-link {
  font-weight: 600;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 0.2s var(--ease);
}

.nav-link.active,
.nav-link:hover {
  color: var(--brand-dark);
  background: rgba(15, 107, 82, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--brand-dark);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.menu-toggle:hover {
  background: rgba(15, 107, 82, 0.1);
}

body.rtl .header-inner {
  flex-direction: row-reverse;
}

body.rtl .main-nav,
body.rtl .header-actions,
body.rtl .hero-actions,
body.rtl .hero-tags,
body.rtl .support-banner-inner,
body.rtl .download-inner,
body.rtl .footer-inner {
  flex-direction: row-reverse;
}

body.rtl .header-drawer {
  flex-direction: row-reverse;
}

body.rtl .section-head,
body.rtl .hero-text,
body.rtl .support-hero-text,
body.rtl .support-contact {
  text-align: right;
}

body.rtl .highlight-text {
  text-align: right;
}

body.rtl .footer-brand {
  flex-direction: row-reverse;
}

body.rtl .download-actions {
  flex-direction: row-reverse;
}

body.rtl .coming-soon {
  right: auto;
  left: 8px;
}

body.rtl .widget-header {
  flex-direction: row-reverse;
}

body.rtl .widget-header-left {
  flex-direction: row-reverse;
}

.language-switcher {
  display: flex;
  gap: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
}

.lang-link {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}

.lang-link.active,
.lang-link:hover {
  color: var(--brand-dark);
  background: rgba(15, 107, 82, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 14px 30px rgba(11, 74, 58, 0.22);
}

.btn.primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--brand-dark);
  border-color: rgba(15, 122, 95, 0.35);
}

.btn.ghost:hover {
  background: rgba(15, 107, 82, 0.12);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  padding: 90px 0 70px;
  position: relative;
}

.widget-hero {
  padding: 70px 0 60px;
}

.widget-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.widget-tags {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 122, 95, 0.12);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.widget-mockups {
  position: relative;
  min-height: 420px;
}

.widget-mockup {
  position: absolute;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: 0 18px 40px rgba(11, 74, 58, 0.16);
}

.widget-mockup img {
  display: block;
  width: 100%;
  height: auto;
}

.widget-mockup.primary {
  width: min(360px, 90vw);
  left: 0;
  bottom: 0;
  z-index: 1;
}

.widget-mockup.secondary {
  width: min(300px, 82vw);
  right: 0;
  top: 0;
  z-index: 2;
}

.widget-card {
  background: var(--surface-strong);
  border-radius: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(11, 74, 58, 0.16);
}

.widget-card.lock {
  width: min(320px, 85vw);
  margin-left: auto;
  background: linear-gradient(135deg, rgba(15, 122, 95, 0.12), rgba(255, 255, 255, 0.95));
  position: absolute;
  top: 0;
  right: 0;
}

.widget-card.home {
  width: min(360px, 90vw);
  margin-top: 140px;
  background: var(--surface-strong);
}

.widget-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(15, 122, 95, 0.16);
  color: var(--brand-dark);
  margin-bottom: 12px;
}

.widget-title {
  font-weight: 600;
  color: var(--brand-dark);
}

.widget-time {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 10px 0 6px;
}

.widget-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.widget-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-header-left img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  padding: 5px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(11, 74, 58, 0.16);
}

.widget-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.widget-pill {
  background: rgba(11, 74, 58, 0.08);
  color: var(--brand-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.widget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(11, 74, 58, 0.12);
}

.widget-row:last-child {
  border-bottom: none;
}

.widget-label {
  color: var(--muted);
  font-weight: 500;
}

.widget-value {
  font-weight: 600;
  color: var(--brand-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(15, 122, 95, 0.16);
  color: var(--brand-dark);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  margin: 16px 0 16px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-top: 10px;
}

.hero-tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.device-stack {
  position: relative;
  width: min(520px, 90vw);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-card {
  position: absolute;
  border-radius: 34px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.98));
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: floatIn 1s var(--ease) both;
}

.device-card.primary {
  width: min(320px, 78vw);
  transform: translateX(-40px) rotate(-2deg);
  z-index: 2;
}

.device-card.secondary {
  width: min(260px, 70vw);
  transform: translateX(120px) translateY(40px) rotate(6deg);
  z-index: 1;
  animation-delay: 0.1s;
}

body.rtl .device-card.primary {
  transform: translateX(40px) rotate(2deg);
}

body.rtl .device-card.secondary {
  transform: translateX(-120px) translateY(40px) rotate(-6deg);
}

.device-card img {
  width: 100%;
  border-radius: 26px;
  display: block;
}

.features,
.highlights,
.gallery,
.steps,
.support-topics,
.faq {
  padding: 70px 0;
}

.download {
  padding: 60px 0;
}

.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(15, 122, 95, 0.08), rgba(15, 122, 95, 0.02));
  border: 1px solid rgba(15, 122, 95, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(11, 74, 58, 0.14);
}

.download-inner p {
  color: var(--muted);
  max-width: 520px;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s var(--ease);
}

.store-badge img {
  height: 54px;
  width: auto;
  display: block;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge.disabled {
  filter: grayscale(1);
  opacity: 0.7;
  cursor: not-allowed;
}

.store-badge.disabled:hover {
  transform: none;
}

.coming-soon {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: var(--ivory);
  color: var(--brand-dark);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 28px rgba(13, 40, 30, 0.06);
  transition: transform 0.25s var(--ease);
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 107, 82, 0.14);
  color: var(--brand-dark);
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
}

.highlight-list {
  display: grid;
  gap: 32px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 18px 40px rgba(11, 74, 58, 0.12);
}

.highlight:nth-child(even) {
  flex-direction: row-reverse;
}

.highlight-text h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.highlight-text p {
  color: var(--muted);
  font-size: 1.02rem;
}

.highlight-media {
  flex: 0 0 min(320px, 50vw);
}

.highlight-media img {
  width: 100%;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.gallery {
  background: rgba(245, 241, 229, 0.45);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.shot {
  background: var(--surface-strong);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.shot img {
  border-radius: var(--radius-sm);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(15, 107, 82, 0.12);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.support-banner {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(15, 122, 95, 0.18), rgba(15, 122, 95, 0.04));
}

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

.support-banner h2 {
  margin-bottom: 8px;
}

.support-banner p {
  color: var(--muted);
}

.support-hero {
  padding: 80px 0 40px;
}

.support-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.support-contact-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.contact-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 8px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.support-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 28px rgba(13, 40, 30, 0.06);
}

.support-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(15, 107, 82, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand-dark);
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--brand-dark);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  color: var(--muted);
  margin-top: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: rgba(243, 251, 246, 0.9);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 6px 16px rgba(11, 74, 58, 0.16);
}

.footer-title {
  font-weight: 700;
  color: var(--brand-dark);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-drawer {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
  }

  .language-switcher {
    justify-content: center;
  }

  .hero-grid,
  .support-hero-grid,
  .widget-hero-grid {
    grid-template-columns: 1fr;
  }

  .widget-mockups {
    min-height: auto;
    display: grid;
    gap: 20px;
  }

  .widget-mockup {
    position: relative;
    width: 100%;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }

  .highlight,
  .highlight:nth-child(even) {
    flex-direction: column;
  }

  .highlight-media {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .header-inner {
    gap: 12px;
  }

  .container {
    padding: 0 18px;
  }

  .brand-tagline {
    display: none;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.95rem;
  }

  .header-actions {
    margin-left: auto;
  }

  body.rtl .header-actions {
    margin-left: 0;
    margin-right: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu-toggle span {
    display: none;
  }

  .header-cta {
    padding: 10px 16px;
    font-size: 0.92rem;
  }

  .header-drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 18px 20px;
    background: rgba(243, 251, 246, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(11, 74, 58, 0.16);
  }

  .site-header.is-open .header-drawer {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: center;
  }

  .language-switcher {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .support-banner-inner,
  .download-inner,
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .device-stack {
    min-height: auto;
    display: grid;
    gap: 16px;
  }

  .device-card {
    position: relative;
    transform: none;
    width: 100%;
  }

  .device-card.secondary {
    animation-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
