@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-display: swap;
  font-weight: 600;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/fonts/IBMPlexSansArabic-Bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #596579;
  --line: #dfe5ee;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --accent: #5576d5;
  --accent-dark: #3556b3;
  --accent-soft: #eaf0ff;
  --success: #397556;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 180ms;
  --motion-reveal: 620ms;
  --motion-stagger: 70ms;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
  line-height: 1.75;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:where(a, button):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner,
.content,
.footer-inner {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  object-fit: cover;
}

.brand-copy {
  display: block;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.05;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1.3;
}

.language-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.language-link:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.content {
  padding: 56px 0 80px;
}

.intro {
  max-width: 720px;
  margin-bottom: 36px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.3;
}

h1 {
  font-size: 3.25rem;
  letter-spacing: 0;
}

h2 {
  margin-top: 40px;
  font-size: 1.45rem;
}

h3 {
  margin-top: 24px;
  font-size: 1.08rem;
}

p,
ul {
  margin: 14px 0 0;
}

ul {
  padding-inline-start: 24px;
}

li + li {
  margin-top: 8px;
}

.meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid #cfe1d7;
  border-inline-start: 4px solid var(--success);
  border-radius: 6px;
  background: #f4faf6;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.link-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-decoration: none;
}

.link-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
}

.link-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 640px) {
  .content {
    padding: 40px 0 60px;
  }

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

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 12px;
  }
}

body[dir="ltr"] {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #f0f4fb;
    --muted: #aeb9ca;
    --line: #344157;
    --paper: #101827;
    --surface: #172237;
    --accent: #8ea7ff;
    --accent-dark: #b9c8ff;
    --accent-soft: #1c2c52;
    --success: #78d6a0;
  }

  .site-header,
  .site-footer {
    background: var(--surface);
  }

  .site-header {
    background: rgba(23, 34, 55, 0.82);
  }

  .site-nav {
    background: rgba(23, 34, 55, 0.58);
  }

  .notice {
    border-color: #315c47;
    background: #193326;
  }

  .cta-secondary,
  .landing-legal-link {
    background: var(--surface);
  }

  .cta-primary {
    color: #101827;
    background: #8ea7ff;
  }

  .cta-primary:hover {
    color: #101827;
    background: #b9c8ff;
  }

  .privacy-panel {
    border-color: #315c47;
    background: #1b352a;
  }

  .privacy-panel h2 {
    color: #d7f0df;
  }

  .privacy-panel p {
    color: #afddbd;
  }

  .privacy-panel .cta-secondary {
    color: #d7f0df;
    border-color: #4a7b5f;
    background: #223b2e;
  }
}

/* Landing page */
.landing-page {
  overflow-x: hidden;
}

.landing-header .header-inner {
  max-width: 1180px;
}

.landing-header .brand {
  font-size: 1.5rem;
}

.landing-header .brand-copy {
  font-size: 1.34rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.site-nav a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.hero {
  padding: 72px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: 72px;
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.hero-copy {
  max-width: 620px;
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-title {
  max-width: 620px;
  color: var(--ink);
  font-size: 4.75rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-body {
  max-width: 560px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.cta-primary {
  color: #f8fbff;
  background: var(--accent-dark);
}

.cta-primary:hover {
  color: #f8fbff;
  background: var(--accent);
  transform: translateY(-1px);
}

.cta-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.cta-secondary:hover {
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-1px);
}

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

.hero-icon-frame {
  width: min(100%, 440px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 22px 50px rgba(20, 32, 51, 0.14);
  transform: rotate(2deg);
}

.hero-icon {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
}

.landing-section {
  padding: 96px 0;
}

.landing-section-tint {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.landing-inner {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.landing-section-heading {
  max-width: 650px;
  margin-bottom: 42px;
}

.landing-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.45rem;
  line-height: 1.2;
}

.landing-section-heading p {
  max-width: 600px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 20px;
}

.feature-item {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.feature-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
}

.feature-item p {
  max-width: 38ch;
  margin-top: 10px;
  color: var(--muted);
}

.feature-primary {
  grid-row: span 2;
  min-height: 330px;
  padding: 34px;
  border: 1px solid #c9d5f2;
  border-radius: 8px;
  background: var(--accent-soft);
}

.feature-primary h3 {
  max-width: 10ch;
  font-size: 2.25rem;
  line-height: 1.18;
}

.feature-primary p {
  max-width: 30ch;
  margin-top: 18px;
  color: var(--ink);
  font-size: 1.05rem;
}

.feature-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 42px;
  border-radius: 50%;
  color: var(--accent-dark);
  background: var(--surface);
  font-size: 1.2rem;
  font-weight: 700;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

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

.screenshot-item {
  min-width: 0;
  margin: 0;
}

.screenshot-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.phone-shell {
  position: relative;
  width: min(100%, 286px);
  margin: 0 auto;
  padding: 18px 8px 8px;
  border: 7px solid #101827;
  border-radius: 30px;
  background: #101827;
  box-shadow: 0 18px 34px rgba(20, 32, 51, 0.2);
}

.phone-shell::before {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 62px;
  height: 5px;
  border-radius: 999px;
  background: #55627b;
  content: "";
  transform: translateX(-50%);
}

@keyframes header-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-icon-in {
  from { opacity: 0; transform: translateY(12px) rotate(2deg) scale(0.98); }
  to { opacity: 1; transform: translateY(0) rotate(2deg) scale(1); }
}

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.site-header {
  animation: header-in var(--motion-fast) var(--motion-ease) both;
}

.hero-icon-frame {
  animation: hero-icon-in var(--motion-reveal) var(--motion-ease) both;
}

.hero-icon {
  animation: hero-icon-float 8s ease-in-out 700ms infinite;
}

.hero-copy > * {
  animation: hero-copy-in var(--motion-reveal) var(--motion-ease) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: var(--motion-stagger);
}

.hero-copy > :nth-child(3) {
  animation-delay: calc(var(--motion-stagger) * 2);
}

.hero-copy > :nth-child(4) {
  animation-delay: calc(var(--motion-stagger) * 3);
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--motion-reveal) var(--motion-ease), transform var(--motion-reveal) var(--motion-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-grid [data-reveal]:nth-child(2),
.process-grid [data-reveal]:nth-child(2) {
  --reveal-delay: 60ms;
}

.feature-grid [data-reveal]:nth-child(3),
.process-grid [data-reveal]:nth-child(3) {
  --reveal-delay: 120ms;
}

.phone-shell {
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}

.phone-shell:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(20, 32, 51, 0.24);
}

.screenshot-item figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.process-item {
  min-height: 190px;
  padding: 28px 26px 0 0;
  border-inline-start: 1px solid var(--line);
}

.process-item:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.process-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.3rem;
}

.process-item p {
  max-width: 30ch;
  margin-top: 10px;
  color: var(--muted);
}

.privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
  align-items: center;
  gap: 52px;
  padding: 40px;
  border: 1px solid #cfe1d7;
  border-radius: 8px;
  background: #edf6f1;
}

.privacy-panel h2 {
  margin: 0;
  color: #174735;
  font-size: 2.1rem;
  line-height: 1.2;
}

.privacy-panel p {
  max-width: 54ch;
  margin-top: 14px;
  color: #315c47;
}

.privacy-panel .cta-secondary {
  justify-self: start;
  color: #174735;
  border-color: #a9cdb8;
  background: #f8fcf9;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.landing-legal-link {
  display: block;
  min-height: 116px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.landing-legal-link:hover {
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.landing-legal-link strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
}

.landing-legal-link span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.landing-footer .footer-inner {
  width: min(100% - 32px, 1180px);
}

@media (max-width: 780px) {
  h1 {
    font-size: 2.35rem;
  }

  .header-inner {
    min-height: 68px;
  }

  .landing-header .header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .landing-header .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    border-radius: 10px;
  }

  .landing-header .site-nav a {
    white-space: nowrap;
    font-size: 0.78rem;
  }

  .hero {
    padding: 32px 0 44px;
  }

  .hero-grid,
  .privacy-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-title {
    font-size: 3.45rem;
  }

  .hero-body {
    font-size: 1rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-icon-frame {
    width: min(100%, 280px);
  }

  .landing-section {
    padding: 68px 0;
  }

  .landing-section-heading h2 {
    font-size: 2rem;
  }

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

  .screenshots-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .screenshot-item {
    flex: 0 0 min(76vw, 280px);
    scroll-snap-align: start;
  }

  .feature-primary {
    grid-row: auto;
    min-height: 0;
  }

  .process-item,
  .process-item:first-child {
    min-height: 0;
    padding: 24px 0 0;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .privacy-panel {
    padding: 28px;
  }

  .privacy-panel h2 {
    font-size: 1.8rem;
  }
}

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

  [data-reveal],
  .motion-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
