:root {
  --ink: #eef4ff;
  --muted: #9aa9c5;
  --paper: #050a18;
  --surface: #ffffff;
  --line: rgba(122, 147, 184, 0.24);
  --green: #1aa27f;
  --green-dark: #0c192e;
  --mint: rgba(26, 162, 127, 0.16);
  --amber: #f5b85a;
  --blue: #2f73ff;
  --panel: rgba(15, 28, 52, 0.78);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  --font-body: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --font-display: "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(47, 115, 255, 0.24), transparent 28%),
    radial-gradient(circle at 14% 22%, rgba(26, 162, 127, 0.2), transparent 26%),
    linear-gradient(180deg, #050a18 0%, #071126 48%, #050a18 100%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(5, 10, 24, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(47, 115, 255, 0.22);
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

.site-nav a:hover {
  color: #ffffff;
}

.header-action,
.primary-button,
.secondary-button,
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.header-action,
.primary-button {
  padding: 0 20px;
  background: var(--blue);
  color: white;
  box-shadow: 0 16px 34px rgba(47, 115, 255, 0.28);
}

.secondary-button {
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  min-height: calc(100vh - 76px);
  padding: clamp(42px, 7vw, 96px) clamp(18px, 5vw, 72px) 64px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 950;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: 1.12;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-weight: 900;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.store-button {
  gap: 12px;
  min-width: 176px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.store-button small,
.store-button span span,
.store-button span small {
  display: block;
}

.store-button small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  line-height: 1.2;
}

.store-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.35rem;
  line-height: 1;
}

.phone-stage {
  display: grid;
  place-items: center;
  min-height: 650px;
  perspective: 1200px;
}

.phone-frame {
  position: relative;
  width: min(100%, 342px);
  aspect-ratio: 1344 / 2992;
  padding: 0;
  border: 9px solid #020612;
  border-radius: 40px;
  background: #020612;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(2deg);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 30px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 38px rgba(47, 115, 255, 0.08);
  pointer-events: none;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section,
.download-band,
.contact {
  padding: 78px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.18;
  font-family: var(--font-display);
  font-weight: 900;
}

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

.feature-grid article {
  min-height: 280px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  border-radius: 14px;
  background: var(--mint);
  color: #79ffd5;
  font-size: 1.4rem;
  font-weight: 900;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 850;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

.download-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, rgba(47, 115, 255, 0.26), rgba(26, 162, 127, 0.22));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: white;
}

.download-band .eyebrow {
  color: #f1c47b;
}

.download-band h2 {
  max-width: 760px;
}

.download-band .store-row {
  margin-top: 0;
  justify-content: flex-end;
}

.store-button-light {
  background: white;
  color: var(--green-dark);
  box-shadow: none;
}

.store-button-light small {
  color: var(--muted);
}

.store-button-light .store-icon {
  background: var(--mint);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255, 255, 255, 0.04);
}

.contact h2 {
  max-width: 800px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer a {
  color: white;
  font-weight: 800;
}

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

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .phone-stage {
    min-height: auto;
  }

  .phone-frame {
    transform: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-band,
  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-band .store-row,
  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .header-action {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

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

  .phone-frame {
    width: min(100%, 300px);
    border-radius: 34px;
  }

  .store-button {
    width: 100%;
  }

  .section,
  .download-band,
  .contact {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  footer {
    flex-direction: column;
  }
}
