*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #0b0f14;
  --bg-mid: #152238;
  --surface: rgba(28, 36, 48, 0.78);
  --surface-hover: rgba(34, 44, 58, 0.92);
  --border: rgba(59, 130, 246, 0.22);
  --border-hover: rgba(59, 130, 246, 0.48);
  --text: #e8edf5;
  --text-muted: #b8c0cc;
  --text-dim: #7a8799;
  --accent: #2b7fff;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --whatsapp-hover: #20bd5a;
  --radius: 16px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  background: linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 55%, #0e1624 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 20, 0.88);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.3;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp) 0%, #1faa52 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.38);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, var(--whatsapp-hover) 0%, var(--whatsapp-dark) 100%);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.52);
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-whatsapp i {
  font-size: 1.25rem;
  line-height: 1;
}

.btn-header {
  padding: 11px 18px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.btn-xl {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: 14px;
  min-width: 220px;
}

.btn-xl i {
  font-size: 1.45rem;
}

/* Hero */
.hero {
  padding: 56px 20px 40px;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 6.5vw, 3rem);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-desc {
  color: var(--text-muted);
  font-size: clamp(1.02rem, 2.6vw, 1.15rem);
  line-height: 1.9;
  margin-bottom: 36px;
  max-width: 680px;
  margin-inline: auto;
}

/* Sections shared */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  text-align: center;
  font-size: clamp(1.55rem, 4vw, 1.95rem);
  font-weight: 800;
  margin-bottom: 28px;
  line-height: 1.25;
}

.section-title-start {
  text-align: right;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 480px;
}

/* App showcase */
.app-showcase {
  padding: 16px 20px 56px;
}

.app-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.app-showcase-copy {
  padding-inline-end: 12px;
}

.app-mockup-slot {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 280px);
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(145deg, #2a3344 0%, #141a24 100%);
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 22px;
  border-radius: 999px;
  background: #0b0f14;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: linear-gradient(180deg, #121820 0%, #0b0f14 100%);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 20px 24px;
  text-align: center;
}

.phone-screen-icon {
  opacity: 0.85;
  border-radius: 18px;
}

.phone-placeholder-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.phone-placeholder-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Services */
.services {
  padding: 48px 20px 56px;
  background: rgba(11, 15, 20, 0.35);
  border-block: 1px solid rgba(36, 48, 65, 0.5);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--surface-hover);
  box-shadow: var(--shadow);
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(43, 127, 255, 0.12);
  border: 1px solid rgba(43, 127, 255, 0.28);
  color: var(--accent);
  font-size: 1.45rem;
  transition: background 0.22s ease, transform 0.22s ease;
}

.card:hover .card-icon-wrap {
  background: rgba(43, 127, 255, 0.22);
  transform: scale(1.06);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Why */
.why {
  padding: 56px 20px 64px;
}

.why-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.why-list li:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.why-list i {
  color: var(--whatsapp);
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Footer */
.footer {
  border-top: 1px solid #243041;
  padding: 36px 20px 44px;
  text-align: center;
  background: rgba(11, 15, 20, 0.75);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 4px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.footer-nav a {
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.footer-nav a:hover {
  color: var(--accent);
  background: rgba(43, 127, 255, 0.08);
}

.footer-sep {
  color: var(--text-dim);
  user-select: none;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.footer-legal {
  max-width: 640px;
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(36, 48, 65, 0.6);
  text-align: right;
}

.footer-legal h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.footer-legal p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.75;
}

.footer-legal + .footer-legal {
  margin-top: 20px;
  padding-top: 20px;
}

/* Responsive */
@media (max-width: 960px) {
  .app-showcase-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .section-title-start,
  .section-desc {
    text-align: center;
    margin-inline: auto;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 12px 16px;
  }

  .app-icon {
    width: 48px;
    height: 48px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .brand-sub {
    font-size: 0.72rem;
  }

  .btn-header span,
  .btn-header {
    font-size: 0.8rem;
    padding: 10px 14px;
  }

  .hero {
    padding-top: 40px;
  }

  .btn-xl {
    width: 100%;
    max-width: 320px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    text-align: right;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: start;
    padding: 18px 16px;
  }

  .card-icon-wrap {
    grid-row: 1 / span 2;
    margin: 0;
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
  }

  .card h3 {
    margin-bottom: 6px;
  }

  .why-list {
    grid-template-columns: 1fr;
  }

  .footer-sep {
    display: none;
  }

  .footer-nav {
    flex-direction: column;
    gap: 4px;
  }
}
